Skip to content

LaTeX axis labels can no longer have custom fonts #6514

Closed
@ngoldbaum

Description

@ngoldbaum

This happens in matplotlib 2.0b1. Here's an example that triggers this behavior:

https://gist.github.com/ngoldbaum/67cf464cc1e2763f95808759423943d9

And this is what the resulting image looks like:

test

Here's what the image produced by the exact same script run under matplotlib 1.5.1 looks like:

test

Note how in matplotlib 1.5.1 the y axis label is drawn using the font I specify in the script (stixgeneral). Under matplotlib 2.0b1, the font is unconditionally set to the default matplotlib font no matter what I do.

This underlying issue is currently causing some labels in yt plots to be rendered with the incorrect font under matplotlib 2.0b1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.topic: text

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions