You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mpl 2.0.0 vs 2.0.1 line style with wx-backend #8637
I don't think this has anything to do with the wx backend. One of the style
changes for v2.0.0 had to do with scaling the line style patterns, however,
there was a bug in how it was implemented and that was fixed for v2.0.1,
IIRC.
As a side note, I notice that this new linestyle scaling feature isn't
mentioned in the "what's new" docs.
It's in API changes; this is not a bug, but a correction of less-desired behaviour. The line width is now actually consistent with the width you requested.
Actually, you might be able to get what you want... maybe. There is an
rcParam, 'lines.scale_dashes'. Try setting that to False. The (corrected)
old behavior was to clip the scaling of the dashes at around 0.5, IIRC, so
you *might* be able to get the old behavior (or something close to it,
perhaps?).
Please allow me a statement:
In mpl 2.0.0 very thin and sharp lines for the V and H lines are available for the cursor. But not so in mpl 2.0.1. This is a step back. I would appreciate it if the developers rethink that.
Thank you
Thank you for the example.
It looks better.
I still need to figure out how to do it for matplotlib.figure
...
I replaced plt.rcParams with matplotlib.rcParams and it seems to work.
I hope I'm on the right track.
I am pretty sure matplotlib.pyplot.rcParams is simply a convenient shortcut for matplotlib.rcParams.
BTW, using the dash-dot pattern from rcParams was just a mean of showing that you could manually scale one of the default patterns. But you could also perfectly use your own dash sequence if you are not satisfied with it. See the Line2D docstring for a comprehensive description of the API, or simply this example to get a quick glance at the syntax. In a nutshell, a dash style is an even-length sequence of on/off ink (in points).
PS: a similar way to customize the dashes may be to define a custom line style, which can be seen as a custom dash style prepended with an “offset” (usually set to zero...), following the pattern (offset, on-off-dash-seq). See for example here.
Thanks for your help, I'm not a professional developer even though I've created a complex Matplotlib application
I'm glad to have the right cursor lines again
Activity
WeatherGod commentedon May 17, 2017
QuLogic commentedon May 17, 2017
It's in API changes; this is not a bug, but a correction of less-desired behaviour. The line width is now actually consistent with the width you requested.
edge-python commentedon May 18, 2017
Thank you for your answer.
but,
these are not good news for me.
WeatherGod commentedon May 18, 2017
edge-python commentedon May 18, 2017
oh, you are so fast
I will try it
Please allow me a statement:
In mpl 2.0.0 very thin and sharp lines for the V and H lines are available for the cursor. But not so in mpl 2.0.1. This is a step back. I would appreciate it if the developers rethink that.
Thank you
afvincent commentedon May 18, 2017
The API change is due to #8032 (the relevant commit is 276e1e9). Basically the former scaling scheme was
dashes = unscaled_dashes * max(2, linewidth).In your case, what about something like
Edit: English…
edge-python commentedon May 18, 2017
Thank you for the example.
It looks better.
I still need to figure out how to do it for matplotlib.figure
...
I replaced plt.rcParams with matplotlib.rcParams and it seems to work.
I hope I'm on the right track.
many thanks for the support
afvincent commentedon May 18, 2017
I am pretty sure
matplotlib.pyplot.rcParamsis simply a convenient shortcut formatplotlib.rcParams.BTW, using the dash-dot pattern from rcParams was just a mean of showing that you could manually scale one of the default patterns. But you could also perfectly use your own dash sequence if you are not satisfied with it. See the Line2D docstring for a comprehensive description of the API, or simply this example to get a quick glance at the syntax. In a nutshell, a dash style is an even-length sequence of on/off ink (in points).
PS: a similar way to customize the dashes may be to define a custom line style, which can be seen as a custom dash style prepended with an “offset” (usually set to zero...), following the pattern
(offset, on-off-dash-seq). See for example here.edge-python commentedon May 18, 2017
Thanks for your help, I'm not a professional developer even though I've created a complex Matplotlib application
I'm glad to have the right cursor lines again
ANT-fit plot
afvincent commentedon May 18, 2017
That's a nice looking application :).