Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set fontsize for stationplot symbol plot #325

Closed
dopplershift opened this issue Feb 16, 2017 · 2 comments
Closed

Can't set fontsize for stationplot symbol plot #325

dopplershift opened this issue Feb 16, 2017 · 2 comments
Assignees
Labels
Area: Plots Pertains to producing plots Type: Bug Something is not working like it should
Milestone

Comments

@dopplershift
Copy link
Member

fig, ax = plt.subplots(dpi=300)
sp = StationPlot(ax, [0], [0], fontsize=8, spacing=32)
sp.plot_symbol('W', [96], current_weather, fontsize=36)

Doesn't produce the expected large thunderstorm symbol. This is because in plot_symbol, we pass:

        kwargs['fontproperties'] = wx_symbol_font

later in the matplotlib code for Text, the FontProperty instance is modified in place. Instead, that should be:

        kwargs['fontproperties'] = wx_symbol_font.copy()
@dopplershift dopplershift added Area: Plots Pertains to producing plots Type: Bug Something is not working like it should labels Feb 16, 2017
@dopplershift dopplershift added this to the Spring 2017 milestone Feb 16, 2017
@jrleeman jrleeman self-assigned this Feb 27, 2017
@jrleeman
Copy link
Contributor

Cannot reproduce, example works with current master.

@dopplershift
Copy link
Member Author

This reproduces:

fig, ax = plt.subplots(dpi=300)
sp = StationPlot(ax, [0], [0], fontsize=8, spacing=32)
sp.plot_symbol('E', [92], current_weather)
sp.plot_symbol('W', [96], current_weather, fontsize=36)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Plots Pertains to producing plots Type: Bug Something is not working like it should
Projects
None yet
Development

No branches or pull requests

2 participants