-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Manual xlim log stackplots not showing, linear stackplots segfault #3626
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
Comments
I am not able to reproduce either issue (segfaulting or missing plots) MacOSX backend and v1.4.0 |
@cimarronm I concur that the above does not terminate on Mac OS 10.9, MPL 1.4.0, but with some monkeying I was able to get the following to segfault on Python 3.4.2 and 2.7.8 (on OS X). Basically all I had to do was change
|
I can reproduce the segfault on OS X Python 3.4.2 with the IPython Inline backend i.e. Agg I cant reproduce the other issue. |
Yet more prodding to get the plot to disappear without crashing on OS X:
I wonder if the plot not showing and segfault are different issues; both seem to be related to |
Yeah, looks like backend related. I can reproduce the crash with TkAgg backend but not MacOSX backend |
There was a similar smelling crash related to image boxes fixed recently that had to do with messed up our negative indexing in to the agg buffers |
The problem occurs when the path collection used to create the stackplot has lines with vertices that are extremely far apart horizontally (in this case due to the exponential x values and a view limit that is only [0 1]) and it is being rendered in agg through
Since the line is so large, it ends up recursing until the stack is depleted and generates a segment fault. This seems to be fixed by drawing the collection through |
I'll briefly explain the purpose of the |
I was trying to make some hacky split axes, things didn't show up, thought it was me, then after trying to make a SSCCE and getting it to segfault I think it's maybe only 90% me.
Uncomment as commented to reproduce. It randomly doesn't work on the seemingly-arbitrary lower bound (
10**-9.2679
).The real fun seems to be if you comment out
ax.set_xscale('log')
, then Python simply segfaults when attempting to eitherf.show()
orf.savefig('test')
(after any of the providedset_xlim
calls).Repro'd on
The text was updated successfully, but these errors were encountered: