Re: [Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Eric Firing
On 2014/11/27, 4:55 AM, Bala subramanian wrote:
> Friends,
>
> I want to make multiple graphs on a single axes. As an example, i am
> pasting below an article where it has been shown.
>
> http://www.ncbi.nlm.nih.gov/pubmed/23403925
>
> My plot of interest is *Figure7B*, where multiple distribution are
> depicted in single plot. I want to make a similar one. Kindly give me
> some insights on how i can make it with mpl, if anyone have achieved
> making it with mpl.

Fig 7b is just a set of curves with sequential offsets in x, right?  A 
LineCollection can be nice for this.  See the last panel in 
http://matplotlib.org/examples/api/collections_demo.html.

Eric

>
> Thanks in advance,
> Bala
>
>
> --
> C. Balasubramanian
>


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Paul Hobson
Check out the third example in the gallery:
Gallery Link:
http://matplotlib.org/gallery.html

Direct Link:
http://matplotlib.org/examples/lines_bars_and_markers/fill_demo_features.html

On Thu, Nov 27, 2014 at 6:55 AM, Bala subramanian  wrote:

> Friends,
>
> I want to make multiple graphs on a single axes. As an example, i am
> pasting below an article where it has been shown.
>
> http://www.ncbi.nlm.nih.gov/pubmed/23403925
>
> My plot of interest is *Figure7B*, where multiple distribution are
> depicted in single plot. I want to make a similar one. Kindly give me some
> insights on how i can make it with mpl, if anyone have achieved making it
> with mpl.
>
> Thanks in advance,
> Bala
>
>
> --
> C. Balasubramanian
>
>
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Shahar Shani-Kadmiel
you could go with something like this:

import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots(1, 10, figsize=(10,3))
fig.subplots_adjust(wspace=0)

for i,axi in enumerate(ax):
axi.axis((0,1,0,1))
axi.xaxis.set_ticks([])
axi.yaxis.set_ticks([])
if i is 0:
axi.xaxis.tick_bottom()
axi.yaxis.tick_left()
axi.spines['right'].set_visible(False)
axi.spines['top'].set_visible(False)
axi.spines['left'].set_bounds(0, 1)
axi.spines['bottom'].set_bounds(0, 1)
axi.yaxis.set_ticks(np.linspace(0,1,5))
axi.yaxis.set_ticklabels(np.linspace(0,1,5))
axi.xaxis.set_ticks(np.linspace(0,1,3))
axi.xaxis.set_ticklabels(np.linspace(0,1,3))
if i > 0:
axi.set_frame_on(False)

axi.plot(np.random.rand(10), np.random.rand(10))


On Nov 27, 2014, at 4:55 PM, Bala subramanian  wrote:

> Friends,
> 
> I want to make multiple graphs on a single axes. As an example, i am pasting 
> below an article where it has been shown.
> 
> http://www.ncbi.nlm.nih.gov/pubmed/23403925
> 
> My plot of interest is Figure7B, where multiple distribution are depicted in 
> single plot. I want to make a similar one. Kindly give me some insights on 
> how i can make it with mpl, if anyone have achieved making it with mpl.
> 
> Thanks in advance,
> Bala
> 
> 
> -- 
> C. Balasubramanian
> --
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Bala subramanian
Friends,

I want to make multiple graphs on a single axes. As an example, i am
pasting below an article where it has been shown.

http://www.ncbi.nlm.nih.gov/pubmed/23403925

My plot of interest is *Figure7B*, where multiple distribution are depicted
in single plot. I want to make a similar one. Kindly give me some insights
on how i can make it with mpl, if anyone have achieved making it with mpl.

Thanks in advance,
Bala


-- 
C. Balasubramanian
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] multiple plots in 1 figure

2009-05-19 Thread Armin Moser
Sandro Tosi schrieb:
> On Tue, May 19, 2009 at 12:54,   wrote:
>> Could you help me with plotting the columns of a matrix vs it's index in 1
>> figure. S if i have an m *n matrix i have to have n plots in 1 figure.
> 
> simply issue multiple times "plot()" with the give information, then
> call pyplot.show(); something like
It is not that complicated. matplotlib plots every column of a matrix as
separate line.

y = arange(25)
y.shape=(5,5)
plot(y)
# or with another
x = arange(10,15)
plot(x,y)
show()


hth Armin

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] multiple plots in 1 figure

2009-05-19 Thread Abhinav Verma
you can use
-
from pylab import plotfile, show
plotfile("filename", (0,1,2,3,4,5,6)) # for a 7 column data
show()
--
cheers,
Abhi

On Tue, May 19, 2009 at 12:54 PM,  wrote:

>
> Dear matplotLib Users,
>
> Could you help me with plotting the columns of a matrix vs it's index in 1
> figure. S if i have an m *n matrix i have to have n plots in 1 figure.
>
> Regards,
> Sandeep Prasad
> Tata Consultancy Services
> Plot No 1, Survey No. 64/2, Software Units Layout
> Serilingampally Mandal, Madhapur
> Hyderabad,Andhra Pradesh
> India
> Ph:- 04066673582
> Cell:- 9640795927
> Mailto: sandeep.pra...@tcs.com
> Website: http://www.tcs.com
> 
> Experience certainty.IT Services
>Business Solutions
>Outsourcing
> 
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
>
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] multiple plots in 1 figure

2009-05-19 Thread Sandro Tosi
On Tue, May 19, 2009 at 12:54,   wrote:
> Could you help me with plotting the columns of a matrix vs it's index in 1
> figure. S if i have an m *n matrix i have to have n plots in 1 figure.

simply issue multiple times "plot()" with the give information, then
call pyplot.show(); something like

  import matplotlib.pyplot as plt

  for j in range(columns of matrix):
  plt.plot(, )

  plt.show()

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] multiple plots in 1 figure

2009-05-19 Thread sandeep . prasad
Dear matplotLib Users,

Could you help me with plotting the columns of a matrix vs it's index in 1 
figure. S if i have an m *n matrix i have to have n plots in 1 figure.

Regards,
Sandeep Prasad
Tata Consultancy Services
Plot No 1, Survey No. 64/2, Software Units Layout
Serilingampally Mandal, Madhapur
Hyderabad,Andhra Pradesh
India
Ph:- 04066673582
Cell:- 9640795927
Mailto: sandeep.pra...@tcs.com
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Outsourcing

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Multiple plots, interactivity, wx etc

2008-08-12 Thread Laurent Dufréchou
Hello,

>How can I do this using mpl and wx backend? Do you recommend using
>threading or forking plots as separate processes ?

None of the above is necessary. 

Add this to imports:
import matplotlib
matplotlib.use('WXAgg')

import matplotlib.cm as cm
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
from matplotlib.figure import Figure
from pylab import *

Just instanciate some wx.panel with inside

self.sizer = wx.BoxSizer(wx.VERTICAL)
fig = Figure()
self.figure = FigureCanvasWxAgg(self.widget, -1, fig)
self.sizer.Add(self.figure, 1, wx.EXPAND)

x1 = array(var1['data'])
y1 = array(var1['data'])

axes = fig.add_subplot(111)#211)
axes.yaxis.tick_left()
axes.plot(x1,y1,alpha=1)
   

And should be OK.
Personnaly I use wx.aui to manage multpile wx.panel inside an App, but it
depends what you want to do with your app.

Laurent


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Multiple plots, interactivity, wx etc

2008-08-12 Thread signal seeker
bump ..

On Thu, Jul 31, 2008 at 11:02 AM, signal seeker <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I have couple of applications in which I have to generate multiple plots
> interactively using the wx backend and wanted to know the best
> approach to take for this. I did search the list for previous
> discussions on this subject, but the approach to take is still
> unfortunately not 100% clear to me.
>
> The first use case is that I want to be able to "show" plots as soon
> as they are ready. The script sits in a loop pulling out data from
> different sources, does some transformations and then plots it. Now I
> understand the recommended way to call show() when all the plots are
> ready. But since there are many many plots and it take some time to
> generate one, I would like to show the plot window as soon as it is
> ready and furthermore I want all the plot windows to be alive so that
> I can go back and forth through them. I tried using pylab.ion(), but
> then after the script exits, all the windows disappear along with it.
>
> The other use case is more like ipython. I have a program to connect
> to a database and the user interacts with it using queries. I would
> like to add visualization support to it The user should be able to plot
> the data as needed and keep all the plot windows alive.
>
> How can I do this using mpl and wx backend? Do you recommend using
> threading or forking plots as separate processes?
>
> Thanks,
> Suchindra
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Multiple plots, interactivity, wx etc

2008-07-31 Thread signal seeker
Hi,

I have couple of applications in which I have to generate multiple plots
interactively using the wx backend and wanted to know the best
approach to take for this. I did search the list for previous
discussions on this subject, but the approach to take is still
unfortunately not 100% clear to me.

The first use case is that I want to be able to "show" plots as soon
as they are ready. The script sits in a loop pulling out data from
different sources, does some transformations and then plots it. Now I
understand the recommended way to call show() when all the plots are
ready. But since there are many many plots and it take some time to
generate one, I would like to show the plot window as soon as it is
ready and furthermore I want all the plot windows to be alive so that
I can go back and forth through them. I tried using pylab.ion(), but
then after the script exits, all the windows disappear along with it.

The other use case is more like ipython. I have a program to connect
to a database and the user interacts with it using queries. I would
like to add visualization support to it The user should be able to plot
the data as needed and keep all the plot windows alive.

How can I do this using mpl and wx backend? Do you recommend using
threading or forking plots as separate processes?

Thanks,
Suchindra
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] multiple plots for the color blind

2007-03-16 Thread Emin.shopper Martinian.shopper

Dear Experts,

When plotting multiple lines, is there a way to have matplotlib
automatically make the lines look different using something other than color
to distinguish the lines? For example, it would be nice if I could issue
multiple plot commands (with hold=True) and have the lines automatically
select different markers or line styles. While matplotlib does make the
colors different, this doesn't help much for people who are color blind. I
checked the FAQ, cookbook, mailing lists, google, etc., but couldn't find a
way to do this besides explicitly specifying the style for each line.

Thanks,
-Emin
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Multiple plots

2007-03-16 Thread Antonino Ingargiola
On 3/16/07, Niklas Saers <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm quite new to Matplot. When issuing show() from Python 2.5 under
> OS X I get a nice menu bar at the bottom with home, left, right etc.
> How can I use these? I tried the different examples, and there are
> plenty of examples that open multiple windows (such as
> legend_auto.py) and that put multiple subplots in a plot, but none
> that actually use the arrows. How can I put multiple plots into a
> window that can be navigated using these arrows?

Those arrows are meant to navigate through the various zoom level you
have chosen with the zoom tool (click on the zoom button the select a
rectangle with the left mouse button to zoom in, with the right mouse
button to zoom out). Home returns to the first zoom level.

> Cheers
>
>  Niklas

Cheers,

  ~ Antonio

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Multiple plots

2007-03-16 Thread Niklas Saers
Hi,
I'm quite new to Matplot. When issuing show() from Python 2.5 under  
OS X I get a nice menu bar at the bottom with home, left, right etc.  
How can I use these? I tried the different examples, and there are  
plenty of examples that open multiple windows (such as  
legend_auto.py) and that put multiple subplots in a plot, but none  
that actually use the arrows. How can I put multiple plots into a  
window that can be navigated using these arrows?

Cheers

 Niklas


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users