On 02/27/2014 06:58 PM, Jon Roadley-Battin wrote:
Good evening,

I am at present migrating an application of mine from py27+pygtk (with mpl) to py33+pygobject (gtk3)

Unfortunately I am unable to use

from  matplotlib.backends.backend_gtk3agg  import  FigureCanvasGTK3Agg  as  
FigureCanvas
from  matplotlib.backends.backend_gtk3  import  NavigationToolbar2GTK3  as  
NavigationToolbar

Which is is on the examples ( http://matplotlib.org/examples/user_interfaces/embedding_in_gtk3_panzoom.html ) but is also the logical translation from what I presently have.
This falls fowl of the cairo issue

What I am having to use is backend_gtk3cairo. However this is being triggered

raise ValueError("The Cairo backend can not draw paths longer than 18980 points.")

I am generally plotting 7 x-y plots with upto 30,000 points.
Now for now I have commented this out from my local install, is there a better/preferred/recommended alternative?

This was put in there because cairo had (at least at the time) a hard coded limit on path size, and getting a Python exception was IMHO preferable to segfaulting and having the process go away. Are you saying that when you comment it out, it's currently working? It may be that cairo has fixed this limit in the intervening years. Can you provide a simple, standalone example that reproduces the error?

I have read about cairocffi but this doesn't seem conveniently possible at this moment in time (especially for windows)

I'm not sure if the Python wrappers will matter, since this issue is actually in the underlying Cairo library.


Equally I have seen mpl-devel mailing list entries from 4years ago stating that this check was to be removed (a cairo 1.4.10 issue)

Are you referring to this thread?

http://matplotlib.1069221.n5.nabble.com/Path-length-in-the-cairo-backend-td36582.html

The conclusion there (if you scroll down) was that the check is still needed as of Cairo 1.8.

Mike


JonRB


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk


_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
                   _
|\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
|  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |

http://www.droettboom.com

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to