[Matplotlib-users] Correct way of saving properties for plot reconstruction

2012-08-23 Thread Andrew Nelson
Dear list,
apologies for what might be a simple question. I am creating an application
that uses matplotlib for plotting, using the Qt4Agg backend.  I can create
the figures without a problem.

However, I wish to save the state of the application, including the graphs.
 The complicating factor is that the user may have altered the appearance
of the graphs via a NavigationToolbar.

I have no problems saving the data that makes up the graphs, but how do I
save the properties of the graphs (line colour, linewidth, etc)?
I tried using matplotlib.artist.ArtistInspector(Line2D).properties(). This
gives a dictionary of all the properties. However, when I try to pickle
this I get picking errors:

cPickle.PicklingError: Can't pickle :
attribute lookup matplotlib.axes.AxesSubplot failed

I am sure that there is an easy way of achieving this, I just can't see it
in the documentation.  I appreciate any help the list is able to give me.

regards,
Andrew



-- 
_
Dr. Andrew Nelson


_
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Impossible to draw a direction of arrows in Matplotlib???

2013-04-12 Thread andrew nelson

> 
> Message: 1
> Date: Fri, 12 Apr 2013 13:55:32 +0400
> From: Bakhtiyor Zokhidov 
> Subject: [Matplotlib-users] Impossible to draw a direction of arrows
>   in Matplotlib???
> 
> Hi,
> I have encountered some problem while I was drawing a direction of
> arrow. I have point (x,y) coordinates and angle of them. What I want to
> do is that to draw arrow according to the given angle (just to show the
> point direction as an arrow in each point coordinate). Here, we should
> assume coordinates of '+x', '+y', '-x ', '-y' are 90, 0, 270, 180
> degrees, respectively.?
> I am a bit unfamiliar with Python drawing tools. I am still not sure to
> draw directional point (arrow based on angle) whether I use pylab or
> some other modules or.. still not sure at all. I put the following codes
> as a sample to give better description:




I see the potential for some confusion over the direction of arrows on a plot 
here.  In standard trigonometry angles of 0, 90, 180, 270 degrees lie along 
'+x' (1, 0), '+y' (0, 1), '-x' (-1, 0) and '-y' (0, -1).  Totally different to 
what you want.  However, this is obviously different to the compass rose.





Dr Andrew Nelson
andyf...@gmail.com
_


--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users