SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S
1
(8)
2
(14)
3
(22)
4
(13)
5
(11)
6
(12)
7
(4)
8
(6)
9
(19)
10
(14)
11
(16)
12
(6)
13
(15)
14
(6)
15
(8)
16
(22)
17
(17)
18
(8)
19
(16)
20
(19)
21
(3)
22
(6)
23
(18)
24
(26)
25
(17)
26
(13)
27
(18)
28
(8)
29
30
(14)
31
(30)




Showing 16 results of 16

From: Jae-Joon L. <lee...@gm...> - 2009年03月11日 23:10:49
It can be tricky to give you a correct answer without knowing what
version of mpl you're using. The legend for the scatter plot has been
added rather recently so my answer below may not work for you.
Anyhow, this seems to be a bug in the documentation, not the code.
The legend for scatter plot has its own properties to control the
number of points, which is "scatterpoints".
So, try
legend(scatterpoints=1)
As a side note,
> legend('my point', numpoints=1)
The first argument should be a list, but I guess this could be just a typo.
> scatter([1,2,3],[1,2,3], label="_nolegend_")
You'd better not use this (setting the label) if you're explicitly
giving the legend labels. I recommend you to stick with either
scatter([1,2,3],[1,2,3], label="_nolegend_")
scatter([1],[1],c='r', label="mypoints")
legend(scatterpoints=1)
or
s1=scatter([1,2,3],[1,2,3])
s2=scatter([1],[1],c='r')
legend([s2], ["mypoints"], scatterpoints=1)
-JJ
On Wed, Mar 11, 2009 at 6:39 PM, per freem <per...@gm...> wrote:
> hi all,
>
> following my last post, i found what seems to me to be a bug in the legend
> handling of scatter plots. suppose i have:
>
> scatter([1,2,3],[1,2,3], label="_nolegend_")
>
> i then want to color some subset of these points in a different color, or
> plot them using a different marker size, etc. so i do:
>
> scatter([1],[1],c='r')
>
> then if i do:
>
> legend('my point', numpoints=1)
>
> the legend is still displayed with 3 points... even if i directly set
> rcParams['legend.numpoints'] = 1, it still behaves this way. any idea how to
> fix this?
>
> thank you
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: per f. <per...@gm...> - 2009年03月11日 22:39:50
hi all,
following my last post, i found what seems to me to be a bug in the legend
handling of scatter plots. suppose i have:
scatter([1,2,3],[1,2,3], label="_nolegend_")
i then want to color some subset of these points in a different color, or
plot them using a different marker size, etc. so i do:
scatter([1],[1],c='r')
then if i do:
legend('my point', numpoints=1)
the legend is still displayed with 3 points... even if i directly set
rcParams['legend.numpoints'] = 1, it still behaves this way. any idea how to
fix this?
thank you
From: per f. <per...@gm...> - 2009年03月11日 21:34:13
hi all,
i'm plotting a scatter plot with several kinds of markers and would like to
display a legend for them. if i try the following:
scatter([1,2,3],[1,2,3])
legend('a')
then the legend shows three dots (of the same type used in the scatter plot)
in this strange arc configuration, with the label 'a' next to it. how can i
make it so it just displays a single dot instead?
also, is there a way to make the legend display outside the figure?
thanks
From: Ville M. V. <viv...@gm...> - 2009年03月11日 21:24:41
On Wed, Mar 11, 2009 at 9:36 PM, Laurent Dufrechou
<lau...@fr...> wrote:
> Hey pierre,
> Wow that's fantastic!
Indeed it is, at least judging by screenshots ;-).
>
> Wow I had seen your pyqtshell I was really impressed by all the surrounding
> widgets.
> Wow ;)
>
> Good job! :)
Now that you are all excited Laurent, perhaps you (with your prev.
experience) could take it for a small spin to see how we can shoehorn
ipython into it ;-)
It's good to see this progressing - I wrote my ipython qt shell in
order to see how easily that stuff could be done (cut all corners,
make sqintilla do the colorization, etc). This version clearly has
more of the all-important polishing work done.
-- 
Ville M. Vainio
http://tinyurl.com/vainio
From: Jae-Joon L. <lee...@gm...> - 2009年03月11日 20:32:02
Try
aa.set_autoscale_on(False)
before your "make_xaxis" call (but after xlim and ylim changed).
When you plot something, the xlim and ylim is automatically adjusted
(unless you set autoscale=False).
-JJ
On Wed, Mar 11, 2009 at 2:31 PM, Nicholas Stephens
<Nic...@un...> wrote:
> Hi all,
>
> I am again a little defeated so I hope somebody can point me in the
> right direction. I am trying to plot a graph but require some
> customation of the axes afterwards. As the axes are sacred in
> matplotlib I am trying to hide the existing axes and plot some new
> axes afterwards. The problem I have encountered is whilst plotting the
> new axes, the xlim functions apparently are no longer recognised.
>
> The new axes appears fine but on the non-limited axes. All of this
> appears to work until the "make_xaxis" command where the original
> non-limited x axis appears again. I have tried various methods, tricks
> and suggestions but cannot appear to get the script to work. Probably
> something simple I know, but I can't seem to get around this one :-s
>
>
> test script >
>
> from pylab import *
> import matplotlib.pyplot as plt
> import matplotlib.lines as lines
>
> #define new axis subroutines
> def make_xaxis(aa, yloc, offset, **props):
>   xmin, xmax = aa.get_xlim()
>   locs = [loc for loc in aa.xaxis.get_majorticklocs()
>       if loc>=xmin and loc<=xmax]
>   tickline, = aa.plot(locs, [yloc]*len(locs),linestyle='',
>       marker=lines.TICKDOWN, **props)
>   aaline, = aa.plot([xmin, xmax], [yloc, yloc], **props)
>   tickline.set_clip_on(False)
>   aaline.set_clip_on(False)
> # xaxis text
>   for loc in locs:
>     aa.text(loc, yloc-offset, '%1.0f'%loc,
>         horizontalalignment='center',
>         verticalalignment='top')
>
> def make_yaxis(aa, xloc, offset, **props):
>   ymin, ymax = aa.get_ylim()
>   locs = [loc for loc in aa.yaxis.get_majorticklocs()
>       if loc>=ymin and loc<=ymax]
>   tickline, = aa.plot([xloc]*len(locs), locs, linestyle='',
>       marker=lines.TICKLEFT, **props)
>   aaline, = aa.plot([xloc, xloc], [ymin, ymax], **props)
>   tickline.set_clip_on(False)
>   aaline.set_clip_on(False)
> # yaxis text
>   for loc in locs:
>     aa.text(xloc-offset, loc, '%1.2f'%loc,
>         verticalalignment='center',
>         horizontalalignment='right')
>
> #read data
> a=load('NC_figure4_alteredT.dat', skiprows=(1))
> ax=a[:,0]
> ay1=a[:,1]
> ay2=a[:,2]
>
> props = dict(color='black', linewidth=2, markeredgewidth=2)
>                         #new axis props
> fig = plt.figure(facecolor='white')
> aa = fig.add_subplot(111, frame_on=False)
> aa.scatter(ax, ay2, s=15, c='b', marker='^')
> aa.set_xlim(-2.5,58.5)
> aa.set_ylim(-0.01,0.25)
>
> #plot new axes
> make_xaxis(aa, -0.02, offset=0.01, **props)
>                         #offset text values from axes
>                         #select y axis intercept
> #make_yaxis(aa, -4, offset=3, **props)      #offset text values from axes
>
> show()
>
>
>
> data>
> time (h)    n:c (a) n:c (b)
> -2   0.12  0.21
> -2   0.12  0.15
> -2   0.1   0.14
> 0    0.12  0.14
> 0    0.11  0.13
> 0    0.11  0.21
> 2    0.11  0.15
> 2    0.11  0.13
> 2    0.11  0.14
> 4    0.11  0.14
> 4    0.1   0.14
> 4    0.09  0.12
> 6    0.09  0.14
> 6    0.1   0.12
> 6    0.1   0.1
> 8    0.11  0.13
> 8    0.08  0.13
> 8    0.1   0.11
> 10   0.1   0.12
> 10   0.08  0.11
> 10   0.11  0.1
> 12   0.07  0.1
> 12   0.09  0.1
> 12   0.08  0.1
> 14   0.1   0.1
> 14   0.16  0.1
> 14   0.1   0.1
> 16   0.1   0.1
> 16   0.17  0.1
> 16   0.07  0.1
> 18   0.1   0.09
> 18   0.09  0.11
> 18   0.09  0.11
> 20   0.09  0.12
> 20   0.09  0.1
> 20   0.07  0.11
> 22   0.12  0.11
> 22   0.09  0.12
> 22   0.09  0.13
> 24   0.09  0.13
> 24   0.11  0.13
> 24   0.11  0.13
> 26   0.09  0.12
> 26   0.09  0.13
> 26   0.11  0.14
> 28   0.09  0.13
> 28   0.1   0.14
> 28   0.09  0.13
> 30   0.09  0.12
> 30   0.1   0.13
> 30   0.1   0.12
> 32   0.09  0.12
> 32   0.08  0.12
> 32   0.09  0.12
> 34   0.08  0.12
> 34   0.08  0.12
> 34   0.11  0.11
> 36   0.09  0.11
> 36   0.07  0.11
> 36   0.09  0.1
> 38   0.1   0.11
> 38   0.08  0.11
> 38   0.09  0.1
> 40   0.09  0.11
> 40   0.09  0.11
> 40   0.09  0.11
> 42   0.09  0.11
> 42   0.11  0.12
> 42   0.08  0.11
> 44   0.12  0.12
> 44   0.12  0.16
> 44   0.11  0.12
> 46   0.11  0.12
> 46   0.12  0.11
> 46   0.1   0.12
> 48   0.1   0.12
> 48   0.14  0.13
> 48   0.1   0.14
> 56   0.1   0.12
> 56   0.11  0.12
> 56   0.11  0.12
> 58   0.12  0.11
> 58   0.12  0.11
> 58   0.12  0.1
>
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Bacon, S. (GE Healthcare) <Sea...@me...> - 2009年03月11日 20:04:23
I need to save a figure for importing into another application. I wrote
a module which creates a plot and then calls savefig to save the figure
as a .jpg. This works fine when I run the applicaiton stand alone, but
when I try to save a figure from another file (which happens to use wx),
it can't save as a .jpg (unknown file type). I believe this has to do
with the backend being used (I think running stand alone it is using
GTKapp). Is there a way to "force" this object to use a specific
backend so I can use the .jpg file type?
From: Laurent D. <lau...@fr...> - 2009年03月11日 19:37:24
Hey pierre,
Wow that's fantastic!
One week ago I started (not sent) a mail that was intended for you on
python(x,y)
I explained that the main issue I get with users I want to convert to python
is:
1) "Hey there is so lot packages, each time I need to install a new package
to get your feature."
2) "Python is bad for my dumb users, scilab is better, when they double
click on the .sce it open the script, they edit the parameters in the script
file and run the script clicking on run."
Python(x,y) solved point 1. Pydee could solve point 2! 
Perhaps I will be able to trash these ###### install of scilab!
Have you planed to integrate it into python(x,y)? If yes, an excellent idea
could be to be able to create file extension like .pyp that are python
script but that open Pydee!
Wow I had seen your pyqtshell I was really impressed by all the surrounding
widgets. 
Wow ;)
Good job! :)
From: Nicholas S. <Nic...@un...> - 2009年03月11日 18:31:32
Hi all,
I am again a little defeated so I hope somebody can point me in the 
right direction. I am trying to plot a graph but require some 
customation of the axes afterwards. As the axes are sacred in 
matplotlib I am trying to hide the existing axes and plot some new 
axes afterwards. The problem I have encountered is whilst plotting the 
new axes, the xlim functions apparently are no longer recognised.
The new axes appears fine but on the non-limited axes. All of this 
appears to work until the "make_xaxis" command where the original 
non-limited x axis appears again. I have tried various methods, tricks 
and suggestions but cannot appear to get the script to work. Probably 
something simple I know, but I can't seem to get around this one :-s
test script >
from pylab import *
import matplotlib.pyplot as plt
import matplotlib.lines as lines
#define new axis subroutines
def make_xaxis(aa, yloc, offset, **props):
 xmin, xmax = aa.get_xlim()
 locs = [loc for loc in aa.xaxis.get_majorticklocs()
 if loc>=xmin and loc<=xmax]
 tickline, = aa.plot(locs, [yloc]*len(locs),linestyle='',
 marker=lines.TICKDOWN, **props)
 aaline, = aa.plot([xmin, xmax], [yloc, yloc], **props)
 tickline.set_clip_on(False)
 aaline.set_clip_on(False)
# xaxis text
 for loc in locs:
 aa.text(loc, yloc-offset, '%1.0f'%loc,
 horizontalalignment='center',
 verticalalignment='top')
def make_yaxis(aa, xloc, offset, **props):
 ymin, ymax = aa.get_ylim()
 locs = [loc for loc in aa.yaxis.get_majorticklocs()
 if loc>=ymin and loc<=ymax]
 tickline, = aa.plot([xloc]*len(locs), locs, linestyle='',
 marker=lines.TICKLEFT, **props)
 aaline, = aa.plot([xloc, xloc], [ymin, ymax], **props)
 tickline.set_clip_on(False)
 aaline.set_clip_on(False)
# yaxis text
 for loc in locs:
 aa.text(xloc-offset, loc, '%1.2f'%loc,
 verticalalignment='center',
 horizontalalignment='right')
#read data
a=load('NC_figure4_alteredT.dat', skiprows=(1))
ax=a[:,0]
ay1=a[:,1]
ay2=a[:,2]
props = dict(color='black', linewidth=2, markeredgewidth=2)
 #new axis props
fig = plt.figure(facecolor='white')
aa = fig.add_subplot(111, frame_on=False)
aa.scatter(ax, ay2, s=15, c='b', marker='^')
aa.set_xlim(-2.5,58.5)
aa.set_ylim(-0.01,0.25)
#plot new axes
make_xaxis(aa, -0.02, offset=0.01, **props)
 #offset text values from axes
 #select y axis intercept
#make_yaxis(aa, -4, offset=3, **props) #offset text values from axes
show()
data>
time (h) n:c (a) n:c (b)
-2 0.12 0.21
-2 0.12 0.15
-2 0.1 0.14
0 0.12 0.14
0 0.11 0.13
0 0.11 0.21
2 0.11 0.15
2 0.11 0.13
2 0.11 0.14
4 0.11 0.14
4 0.1 0.14
4 0.09 0.12
6 0.09 0.14
6 0.1 0.12
6 0.1 0.1
8 0.11 0.13
8 0.08 0.13
8 0.1 0.11
10 0.1 0.12
10 0.08 0.11
10 0.11 0.1
12 0.07 0.1
12 0.09 0.1
12 0.08 0.1
14 0.1 0.1
14 0.16 0.1
14 0.1 0.1
16 0.1 0.1
16 0.17 0.1
16 0.07 0.1
18 0.1 0.09
18 0.09 0.11
18 0.09 0.11
20 0.09 0.12
20 0.09 0.1
20 0.07 0.11
22 0.12 0.11
22 0.09 0.12
22 0.09 0.13
24 0.09 0.13
24 0.11 0.13
24 0.11 0.13
26 0.09 0.12
26 0.09 0.13
26 0.11 0.14
28 0.09 0.13
28 0.1 0.14
28 0.09 0.13
30 0.09 0.12
30 0.1 0.13
30 0.1 0.12
32 0.09 0.12
32 0.08 0.12
32 0.09 0.12
34 0.08 0.12
34 0.08 0.12
34 0.11 0.11
36 0.09 0.11
36 0.07 0.11
36 0.09 0.1
38 0.1 0.11
38 0.08 0.11
38 0.09 0.1
40 0.09 0.11
40 0.09 0.11
40 0.09 0.11
42 0.09 0.11
42 0.11 0.12
42 0.08 0.11
44 0.12 0.12
44 0.12 0.16
44 0.11 0.12
46 0.11 0.12
46 0.12 0.11
46 0.1 0.12
48 0.1 0.12
48 0.14 0.13
48 0.1 0.14
56 0.1 0.12
56 0.11 0.12
56 0.11 0.12
58 0.12 0.11
58 0.12 0.11
58 0.12 0.1
From: Jörgen S. <jor...@bo...> - 2009年03月11日 17:14:04
Jouni K. Seppänen skrev:
> Jörgen Stenarson <jor...@bo...> writes:
> 
>> I have been unable to get the pdf backend to respect the settings for 
>> solid_joinstyle properly.
> 
> Fixed on the trunk; the test case is examples/api/joinstyle.py. Thanks
> for your report!
> 
Thanks for the quick fix. It works fine for me now.
/Jörgen
Hi:
I have a multithread program. One of the thread is using MPL to plot
some data. Everything works as expected, until the moment I terminate
the program. When the main thread terminate, I start getting this
message:
Exception exceptions.RuntimeError: RuntimeError('main thread is not in
main loop',) in <bound method PhotoImage.__del__ of
<Tkinter.PhotoImage instance at 0x910064c>> ignored
I get 8 of this message, and then the program finally stop.
I am stopping the thread before terminating. I also close the figure.
All the threads are running as Daemons
(thread_instance.setDaemon(True) ).
Any idea about what could be happening?
Regards,
Alejandro.
From: Sebastian K. <seb...@io...> - 2009年03月11日 13:08:16
Hi Gökhan et al,
I hope the following code might help you out and show you the basic idea 
of sharing the same x and y axis over several subplots. I've made a plot 
with 2 x 2 subplots sharing both x and y axis and showing only the 
labels at the left and the labels at the bottom.
 import pylab
 figprops = dict(figsize=(8., 8. / 1.618),
 dpi=128) # Figure properties
 adjustprops = dict(left=0.1, bottom=0.1, right=0.97, top=0.93,
 wspace=0.08,
 
 hspace=0.1) #
 Subplot properties
 fig =
 pylab.figure(**figprops) 
 # New figure
 fig.subplots_adjust(**adjustprops) 
 # Tunes the subplot layout
 ax = fig.add_subplot(2, 2, 1)
 bx = fig.add_subplot(2, 2, 2, sharex=ax, sharey=ax)
 cx = fig.add_subplot(2, 2, 3, sharex=ax, sharey=ax)
 dx = fig.add_subplot(2, 2, 4, sharex=ax, sharey=ax)
 ax.plot(X1, Y1, 'k-')
 bx.plot(X2, Y2, 'k-')
 cx.plot(X3, Y3, 'k-')
 dx.plot(X4, Y4, 'k-')
 pylab.setp(ax.get_xticklabels(), visible=False)
 pylab.setp(bx.get_xticklabels(), visible=False)
 pylab.setp(bx.get_yticklabels(), visible=False)
 pylab.setp(dx.get_yticklabels(), visible=False)
You can make the subplots come closer by changing the /wspace/ and 
/hspace/ entries in the /adjustprops/ dictionary.
Cheers,
Sebastian
Gökhan SEVER wrote:
> I don't know how to do this in matplotlib. Can you give an example?
>
> Chip,
>
> I tried your method but didn't work for me :(
>
> So far, my best approach is use some GIMP tricks on transparent 
> canvas. With these improvements I am finishing my first official poster.
>
> Thanks.
> Gökhan
From: Pierre R. <co...@py...> - 2009年03月11日 07:07:07
-----------------------------------------------------
Edit:
Apparently, there's a bug (a what?!) in Pydee v0.3.0
You won't be able to install it and test it until v0.3.1
(I'll release it in 10-12 hours)
Sorry for that
-----------------------------------------------------
Hi all,
Two months ago, I made an announcement regarding a little open-source
project of mine, PyQtShell -- that is a module providing embeddable
console widgets for your PyQt applications (interactive Python shell,
workspace, working directory browser, editor, ...) as well as "Pydee", a
PYthon Development EnvironmEnt based on these widgets (which could
become an interesting alternative to IDLE for example).
Pydee features have been greatly enhanced these last weeks, and a lot of
bugs were fixed thanks to Christopher Brown (thank you again Christopher
for your bug reports/feature requests which are always very detailed and
constructive).
I recently (a few minutes ago actually..) added an interesting feature
in Pydee v0.3.0: matplotlib integration (i.e. matplotlib figures can be
docked inside Pydee which is quite convenient).
See this screenshot for example:
http://source.pythonxy.com/PyQtShell/screenshots/ss3.png
Other screenshots and informations:
http://pypi.python.org/pypi/PyQtShell/
http://code.google.com/p/pyqtshell/
As some of you may have noticed, Pydee is intended to be a mini-MATLAB
environment -- that being said, it still at an early stage of development.
Cheers,
Pierre
From: Chip W. <chi...@gm...> - 2009年03月11日 03:43:19
Gökhan SEVER wrote:
> I don't know how to do this in matplotlib. Can you give an example?
> 
> Chip,
> 
> I tried your method but didn't work for me :(
Well, I'm using matplotlib 0.98.5.2, I'm not sure if that makes a 
difference or not.
Here's what I'm seeing:
http://yfrog.com/090366p
It's pretty rough, but I thought it might give you an idea or two. Like 
I said, I've been meaning to clean up my subplots too I just haven't had 
time to do it. I'd be curious to see how you do it if you get it working :)
-Chip
I'm pasting the source again in case I fumbled the last attempt:
#!/usr/bin/env python
# Make one axis that spans several subplots
from matplotlib import pyplot as plt
t = [0,1]
y = [0,1]
fig = plt.figure()
plt.axes([0.1,0.1,0.8,0.8], frameon=True, axisbg='w')
ax = fig.add_subplot(211)
plt.setp(ax.get_yticklabels(), visible=False)
plt.plot(t,y)
ax = fig.add_subplot(212)
plt.setp(ax.get_yticklabels(), visible=False)
plt.plot(t,y)
plt.show()
> 
> So far, my best approach is use some GIMP tricks on transparent canvas. 
> With these improvements I am finishing my first official poster.
> 
> Thanks.
> Gökhan
> 
> 
> On Tue, Mar 10, 2009 at 6:01 PM, Jonathan Taylor
> <jon...@ut... <mailto:jon...@ut...>>
> wrote:
> 
> I don't know if there is a betteer way to do it, but I think you can
> just attach a text artist to the figures canvas.
> 
> Best,
> J.
> 
> On Mon, Mar 9, 2009 at 12:15 PM, Gökhan SEVER
> <gok...@gm... <mailto:gok...@gm...>> wrote:
> > Hello,
> >
> > I have six subplots in my canvas, and wondering how to place
> a common ylabel
> > into the canvas in matplotlib? (Let say instead of having six
> same text on
> > the y-axes just to replace them with one bigger text
> encompassing all six
> > y-axes.)
> >
> > Is this available in ml or am I too blind to see this feature?
> >
> > Thanks,
> >
> > Gökhan
> >
> >
> >
> ------------------------------------------------------------------------------
> > Open Source Business Conference (OSBC), March 24-25, 2009,
> San Francisco, CA
> > -OSBC tackles the biggest issue in open source: Open Sourcing
> the Enterprise
> > -Strategies to boost innovation and cut costs with open
> source participation
> > -Receive a 600ドル discount off the registration fee with the
> source code: SFAD
> > http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> <mailto:Mat...@li...>
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Gökhan S. <gok...@gm...> - 2009年03月11日 00:51:25
I don't know how to do this in matplotlib. Can you give an example?
Chip,
I tried your method but didn't work for me :(
So far, my best approach is use some GIMP tricks on transparent canvas. With
these improvements I am finishing my first official poster.
Thanks.
Gökhan
> On Tue, Mar 10, 2009 at 6:01 PM, Jonathan Taylor <
> jon...@ut...> wrote:
>
>> I don't know if there is a betteer way to do it, but I think you can
>> just attach a text artist to the figures canvas.
>>
>> Best,
>> J.
>>
>> On Mon, Mar 9, 2009 at 12:15 PM, Gökhan SEVER <gok...@gm...>
>> wrote:
>> > Hello,
>> >
>> > I have six subplots in my canvas, and wondering how to place a common
>> ylabel
>> > into the canvas in matplotlib? (Let say instead of having six same text
>> on
>> > the y-axes just to replace them with one bigger text encompassing all
>> six
>> > y-axes.)
>> >
>> > Is this available in ml or am I too blind to see this feature?
>> >
>> > Thanks,
>> >
>> > Gökhan
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Open Source Business Conference (OSBC), March 24-25, 2009, San
>> Francisco, CA
>> > -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> > -Strategies to boost innovation and cut costs with open source
>> participation
>> > -Receive a 600ドル discount off the registration fee with the source code:
>> SFAD
>> > http://p.sf.net/sfu/XcvMzF8H
>> > _______________________________________________
>> > Matplotlib-users mailing list
>> > Mat...@li...
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >
>> >
>>
>
>
From: Jonathan T. <jon...@ut...> - 2009年03月11日 00:08:57
This looks very cool. I will check it out.
Thanks,
J.
On Tue, Mar 10, 2009 at 5:19 PM, Pierre Raybaut <co...@py...> wrote:
> Hi all,
>
> Two months ago, I made an announcement regarding a little open-source
> project of mine, PyQtShell -- that is a module providing embeddable
> console widgets for your PyQt applications (interactive Python shell,
> workspace, working directory browser, editor, ...) as well as "Pydee", a
> PYthon Development EnvironmEnt based on these widgets (which could
> become an interesting alternative to IDLE for example).
>
> Pydee features have been greatly enhanced these last weeks, and a lot of
> bugs were fixed thanks to Christopher Brown (thank you again Christopher
> for your bug reports/feature requests which are always very detailed and
> constructive).
>
> I recently (a few minutes ago actually..) added an interesting feature
> in Pydee v0.3.0: matplotlib integration (i.e. matplotlib figures can be
> docked inside Pydee which is quite convenient).
> See this screenshot for example:
> http://source.pythonxy.com/PyQtShell/screenshots/ss3.png
>
> Other screenshots and informations:
> http://pypi.python.org/pypi/PyQtShell/
> http://code.google.com/p/pyqtshell/
>
> As some of you may have noticed, Pydee is intended to be a mini-MATLAB
> environment -- that being said, it still at an early stage of development.
>
> Cheers,
> Pierre
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Jonathan T. <jon...@ut...> - 2009年03月11日 00:02:00
I don't know if there is a betteer way to do it, but I think you can
just attach a text artist to the figures canvas.
Best,
J.
On Mon, Mar 9, 2009 at 12:15 PM, Gökhan SEVER <gok...@gm...> wrote:
> Hello,
>
> I have six subplots in my canvas, and wondering how to place a common ylabel
> into the canvas in matplotlib? (Let say instead of having six same text on
> the y-axes just to replace them with one bigger text encompassing all six
> y-axes.)
>
> Is this available in ml or am I too blind to see this feature?
>
> Thanks,
>
> Gökhan
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a 600ドル discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

Showing 16 results of 16

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /