Re: [Matplotlib-users] how to create 2 plots?

2013-08-13 Thread Joseph Hardin
Can you provide us with more information? You can create one plot, save it,
and then create the second, or is there something more specific you are
looking for?


On Mon, Aug 12, 2013 at 11:58 PM, vwf v...@vulkor.net wrote:

 Hello,

 I need to create two plots (png files) in one go, two unrelated views of
 the same dataset. There is good documentation about subplots but I
 cannot locate documentation about two plots. Can someone tell me how it
 is done?


 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite!
 It's a free troubleshooting tool designed for production.
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.
 http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users




-- 
Joseph Hardin, MSEE
Colorado State University
Radar and Communications Laboratory
One must do not violence to nature, nor model it in conformity to any
blindly formed chimaera.
-Janos Boylai
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how to create 2 plots?

2013-08-13 Thread Stephen Gibson

Call   'figure()'   for each plot.

see:  http://matplotlib.org/api/pyplot_api.html

matplotlib.pyplot.figure(/num=None/, /figsize=None/, /dpi=None/, 
/facecolor=None/, /edgecolor=None/, /frameon=True/, /FigureClass=class 
'matplotlib.figure.Figure'/, /**kwargs/)


   Creates a new figure.

   Parameters : 

   *num* : integer or string, optional, default: none

   If not provided, a new figure will be created, and a the figure
   number will be increamted. The figure objects holds this number
   in a number attribute. If num is provided, and a figure with
   this id already exists, make it active, and returns a reference
   to it. If this figure does not exists, create it and returns it.
   If num is a string, the window title will be set to this
   figure's num.



Steve.

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] how to create 2 plots?

2013-08-13 Thread Eric Firing
On 2013/08/12 8:35 PM, vwf wrote:
 Thank you for you reply. I tried to create one after the other but when
 I did this my second plot was on top of the first one. The old plot
 needs to be flushed before starting the second one.

 This doesn't work:
 import matplotlib.pyplot as plt
 a=plt.plot([1, 2], [1, 2])
 plt.savefig('1.png', dpi=100)

plt.close()


 b=plt.plot([1, 2], [2,1])
 plt.savefig('2.png', dpi=100)

 In 2.png, a and b are on top of each other



--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Is anyone producing matplotlib daily builds?

2013-08-13 Thread Michael Droettboom
As I'm researching what we may want to do for better continuous 
integration, I'm remembering that at least one person, Thomas Kluyver, 
is producing daily automated builds (for Ubuntu) here:


https://launchpad.net/~takluyver/+archive/matplotlib-daily 
https://launchpad.net/%7Etakluyver/+archive/matplotlib-daily


Is anyone else out there doing anything similar for other Linux distros 
or other platforms?  a) I'd like to list these things on the main 
website, and b) I'd like to look at how these kinds of things might make 
sense as part of a broader CI strategy.


Cheers,
Mike
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] TeX \textcolor in plot title: (why) does it only work for .ps output?

2013-08-13 Thread Xiha

Hello,

I am trying to color-highlight parts of a figure title. I got it to work 
via the second ('non-interactive') solution given here 
http://stackoverflow.com/questions/9169052/partial-coloring-of-text-in-matplotlib, 
using TeX's \textcolor. It has the advantage (over the first solution) 
that you can use .xlabel(), .title() etc. as usual.


However the limitation stated is that it only works when saving the plot 
as a PostScript file. I'm finding this to be true: the coloring does not 
appear when plotting to the screen rather than to a file (as with 
.show()), nor when using matplotlib.use('SVG') or matplotlib.use('AGG') 
to get svg or png output (which I would prefer). This is so even though 
other 'fancy' TeX commands like \mathcal do seem to work in all output 
options.


I am only minimally acquainted with (La)TeX, and fairly new to Python 
and matplotlib too, so I don't quite grasp what is going on here, and 
whether it is worth digging deeper to try and make it work. So: why is 
there a difference in success between using (e.g.) \mathcal versus 
\textcolor over different output options?


Many thanks!
||
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] TeX \textcolor in plot title: (why) does it only work for .ps output?

2013-08-13 Thread Jeffrey Spencer
Have a look here why Mathcal works in all backends:

http://matplotlib.org/users/mathtext.html

They give an example for an interactive backend which means it would work
with any output format in the link you provided. Could also use \textcolor
for .pdf output as well since the text rendering would use TeX as well but
this wouldn't get you SVG.

On Tue, Aug 13, 2013 at 9:00 PM, Xiha x...@laposte.net wrote:

  Hello,

 I am trying to color-highlight parts of a figure title. I got it to work
 via the second ('non-interactive') solution given 
 herehttp://stackoverflow.com/questions/9169052/partial-coloring-of-text-in-matplotlib,
 using TeX's \textcolor. It has the advantage (over the first solution) that
 you can use .xlabel(), .title() etc. as usual.

 However the limitation stated is that it only works when saving the plot
 as a PostScript file. I'm finding this to be true: the coloring does not
 appear when plotting to the screen rather than to a file (as with .show()),
 nor when using matplotlib.use('SVG') or matplotlib.use('AGG') to get svg or
 png output (which I would prefer). This is so even though other 'fancy' TeX
 commands like \mathcal do seem to work in all output options.

 I am only minimally acquainted with (La)TeX, and fairly new to Python and
 matplotlib too, so I don't quite grasp what is going on here, and whether
 it is worth digging deeper to try and make it work. So: why is there a
 difference in success between using (e.g.) \mathcal versus \textcolor over
 different output options?

 Many thanks!


 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite!
 It's a free troubleshooting tool designed for production.
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.
 http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users