On Apr 21, 2009, at 1:49 PM, Chaitanya Krishna wrote:
> But, anyways the point of this mail is to ask if there is a clever way
> of making different plots for different circumstances. For example,
> trying to make a plot for publication in a journal demands it being
> made in one way while using it in a presentation demands you to make a
> different one and probably trying to use it in a report requires
> another one.
>
> So, is there a way to decouple the plot settings (like figure size,
> axes properties, tick properties, etc) from the data being plotted. If
> so, can someone give some examples.

Here's another example from the matplotlib docs that sounds more like  
what you're looking for:

http://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html?highlight=set_pub

I use something similar to the ``set_pub`` method in the comments of  
the example. I have a module ``plotstyle`` which has methods for  
``presentation``, ``publication``, etc. and whenever I want a script  
to use a certain style I just add:

 >>> import plotstyle
 >>> plotstyle.presention()

Best,
-Tony

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to