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
(36)
2
(10)
3
(8)
4
5
(4)
6
(15)
7
(17)
8
(3)
9
(8)
10
(5)
11
(2)
12
(5)
13
(5)
14
(15)
15
(3)
16
(10)
17
(6)
18
(2)
19
(1)
20
(11)
21
(33)
22
(13)
23
(14)
24
(15)
25
(4)
26
(5)
27
(9)
28
(12)
29
(7)
30
(8)
31
(6)

Showing 15 results of 15

From: Eric F. <ef...@ha...> - 2007年08月14日 23:49:09
One thing you have missed is the behavior of pylab.cm.jet. If you pass 
it an integer array, it treats the integers as indices into the default 
jet colormap, with 256 colors. If you pass it a float array, the floats 
must be scaled from 0 to 1, in which case you will get scaled values 
from the colormap.
I am sure there is more to this story, and probably some improvements 
needed in scatter and/or its documentation, but this is all I have time 
for at the moment.
Eric
Joe Shmoe wrote:
> On 8/14/07, Matthew Auger <ma...@ph...> wrote:
>> This demonstrates the *solution*--the problem is that scatter() does not
>> automagically perform color mapping for the edge and face colors.
> 
> Indeed...and I wish the behavior was more like other mpl functions.
> Either way, passing my list through a colormap did not solve the issue
> (for me). If I call:
> 
> scatter(x,y,s,c)
> 
> then I get a scatter plot where the points are different sizes and
> colors. Without specifying the keyword 'edgecolor', it is not
> possible to have varying edge colors. For consistency, I set the
> facecolors through a keyword as well. So, I would like to be able to
> make the following command:
> 
> scatter(x,y,s, facecolor=cm.jet(c), edgecolor=cm.jet(ec))
> 
> where, as noted, we must manually map the colors when specifying via
> keywords. However, when I run the above command, I do not get a
> scatter plot with varying sizes, colors, and edgecolors. Instead, I
> get varying sizes, all points with 'b' as a facecolor, and all points
> with 'k' as an edgecolor.
> 
> I've tried to figure this out...comments are requested...
> 
> I am looking at axes.py/scatter now....
> 
> When I make the above statement, c takes on its default value (which
> is 'b'). The function sees that c is string like and converts it to a
> rgba_list. Since 'faceted' defaults to True, edgecolors=None.
> 
> Now we go through and create the *PolyCollection. For 'facecolors' we
> pass in 'b'...and for 'edgecolors' we pass in None. After creation,
> collection.update(kwargs) is called.
> 
> As I understand it, this is what *should* happen when the update
> method is called: The collection should take my keywords 'facecolor'
> and 'edgecolor' and assign them to self._facecolors and
> self._edgecolors. This does occur (as my first reply demonstrated).
> It seems what should *also* happen is that the facecolors/edgecolors
> of the points should be updated...but this does not occur.
> 
> Do you (or does anybody) have a working, simple example where the
> faces/edges are both varying for a scatter plot? Perhaps I've missed
> something obvious.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Joe S. <ano...@gm...> - 2007年08月14日 23:38:39
On 8/14/07, Matthew Auger <ma...@ph...> wrote:
> This demonstrates the *solution*--the problem is that scatter() does not
> automagically perform color mapping for the edge and face colors.
Indeed...and I wish the behavior was more like other mpl functions.
Either way, passing my list through a colormap did not solve the issue
(for me). If I call:
 scatter(x,y,s,c)
then I get a scatter plot where the points are different sizes and
colors. Without specifying the keyword 'edgecolor', it is not
possible to have varying edge colors. For consistency, I set the
facecolors through a keyword as well. So, I would like to be able to
make the following command:
 scatter(x,y,s, facecolor=cm.jet(c), edgecolor=cm.jet(ec))
where, as noted, we must manually map the colors when specifying via
keywords. However, when I run the above command, I do not get a
scatter plot with varying sizes, colors, and edgecolors. Instead, I
get varying sizes, all points with 'b' as a facecolor, and all points
with 'k' as an edgecolor.
I've tried to figure this out...comments are requested...
I am looking at axes.py/scatter now....
When I make the above statement, c takes on its default value (which
is 'b'). The function sees that c is string like and converts it to a
rgba_list. Since 'faceted' defaults to True, edgecolors=None.
Now we go through and create the *PolyCollection. For 'facecolors' we
pass in 'b'...and for 'edgecolors' we pass in None. After creation,
collection.update(kwargs) is called.
As I understand it, this is what *should* happen when the update
method is called: The collection should take my keywords 'facecolor'
and 'edgecolor' and assign them to self._facecolors and
self._edgecolors. This does occur (as my first reply demonstrated).
It seems what should *also* happen is that the facecolors/edgecolors
of the points should be updated...but this does not occur.
Do you (or does anybody) have a working, simple example where the
faces/edges are both varying for a scatter plot? Perhaps I've missed
something obvious.
From: Matthew A. <ma...@ph...> - 2007年08月14日 22:05:27
This demonstrates the *solution*--the problem is that scatter() does not 
automagically perform color mapping for the edge and face colors. Perhaps 
this is a 'feature', but if so (or even if not) maybe the documentation 
should be clarified (I figured 'c' and 'color' were equivalent, like other 
mpl functions, but this is NOT the case for scatter; none of the 'color' 
kwargs are automatically mapped).
On 2007年8月14日, Joe Shmoe wrote:
> Matthew Auger wrote the following on 08/13/2007 11:15 AM:
>> I'm trying to make high-dimensionality scatter plots, but I've run into a
>> couple of issues. I'm using scatter() but including both edge and face
>> color mapping; I doubt this will provide a meaningful display, but I'd
>> like to try it and see.... Unfortunately, passing data arrays to facecolor
>> and edgecolor does *not* map the data arrays to colors--instead I get
>> gray edges and/or faces. As a side note, none of the 'usual' keyword
>> shortcuts (ec, fc, lw for example) work with scatter().
>>
>
> Does the following demonstrate the issue?
>
> --------------
> import pylab
> x = [a for a in range(10)]
> y = [a**2 for a in range(10)]
> s = [a**3 for a in range(10)]
> c = x
> ec = c[:]
> ec.reverse()
>
> a = pylab.scatter(x,y,s,
> facecolor=pylab.cm.jet(c),
> edgecolor=pylab.cm.jet(ec))
>
> print a._facecolors
> print a._edgecolors
>
> pylab.show()
> -------------
>
> So we create a scatter plot with different sizes, facecolors, and
> edgecolors. The collection clearly has the facecolors/edgecolors
> stored. However, resulting image does not show the different
> facecolors/edgecolors. Each circle is given the default
> facecolor/edgecolor (as axes.py indicates it should)...but It seems
> like something is not getting updated. Comments anyone? ...seems
> like a bug at first glance...
>
> Confirmed with version 0.90.1.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Joe S. <ano...@gm...> - 2007年08月14日 21:31:15
Matthew Auger wrote the following on 08/13/2007 11:15 AM:
> I'm trying to make high-dimensionality scatter plots, but I've run into a
> couple of issues. I'm using scatter() but including both edge and face
> color mapping; I doubt this will provide a meaningful display, but I'd
> like to try it and see.... Unfortunately, passing data arrays to facecolor
> and edgecolor does *not* map the data arrays to colors--instead I get
> gray edges and/or faces. As a side note, none of the 'usual' keyword
> shortcuts (ec, fc, lw for example) work with scatter().
>
Does the following demonstrate the issue?
--------------
import pylab
x = [a for a in range(10)]
y = [a**2 for a in range(10)]
s = [a**3 for a in range(10)]
c = x
ec = c[:]
ec.reverse()
a = pylab.scatter(x,y,s,
 facecolor=pylab.cm.jet(c),
 edgecolor=pylab.cm.jet(ec))
print a._facecolors
print a._edgecolors
pylab.show()
-------------
So we create a scatter plot with different sizes, facecolors, and
edgecolors. The collection clearly has the facecolors/edgecolors
stored. However, resulting image does not show the different
facecolors/edgecolors. Each circle is given the default
facecolor/edgecolor (as axes.py indicates it should)...but It seems
like something is not getting updated. Comments anyone? ...seems
like a bug at first glance...
Confirmed with version 0.90.1.
From: Michael D. <md...@st...> - 2007年08月14日 20:17:30
In matplotlib 0.90.1, the trigger to render the string with math 
formatting is if the string that is ultimately passed to the plotting 
engine starts and ends with a '$'.
So to get your expression to work, you would need to do something like:
 vlostring="$v_{lo}=%5.2f$" % (vlo)
Does that work for you?
Cheers,
Mike
David D Clark wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 
> I am trying to create some text on a plot with the following commands:
> 
> vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime)
> text(vlo,vlotime,vlostring)
> 
> However, the text is rendered literally --
> 
> $v_{lo}$=0.3 t=7961.66
> 
> instead of nicely formatted LaTeX like text
> 
> when I do
> 
> text(vlo,vlotime,"$v_{lo}=$")
> 
> without trying to add the str(...), it renders the expression correctly.
> 
> Any suggestions?
> Dave
> 
> - --
> David D. Clark
> Electrical Engineer
> P-23, Neutron Science and Technology
> e-mail mailto:dd...@la...
> GPG Public key 0x018D6523 available at http://www.us.pgp.net
> http://www.gnupg.org has information about public key cryptography
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
> 
> iD8DBQFGwgG0Nu7GcwGNZSMRAqRrAJ4kHL6bpFVFhJteHQ1uzQPtREFxkwCdFxe4
> zw3F6ymJr5XSeJxwDQmBFjE=
> =MIQ6
> -----END PGP SIGNATURE-----
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Xavier G. <gn...@ob...> - 2007年08月14日 20:15:43
Darren Dale wrote:
> On Tuesday 14 August 2007 09:14:54 am Xavier Gnata wrote:
> 
>> Darren Dale wrote:
>> 
>>> On Sunday 12 August 2007 07:05:38 pm Xavier Gnata wrote:
>>> 
>>>> OK my matplotlibrc was out of date. Now it works but I have found
>>>> another but playing with the sliders of the backend:
>>>> As the log is quite long, here are only the most relevant parts :
>>>> 
>>> [...]
>>>
>>> 
>>>> It looks like that the ranges of the sliders are checked in a wrong way.
>>>> It may be due to numerical rounding issues.
>>>> 
>>> Unfortunately I have my hands full at work, so I don't know when I will
>>> be able to look into this. I would need more information before I could
>>> start anyway: a simple script and a list of steps that reproduces the
>>> problem, and does it only occur with the qt4 backend.
>>>
>>> Darren
>>> 
>> Using Qt4Agg as backend :
>> import pylab
>> pylab.plot([1,2])
>> Then click on the "subplot configuration tool"
>> Move the "left" slider to the right end on the slider.
>> Python crashes because :
>>
>> ValueError: left cannot be >= right
>>
>> Using the TkAgg backend, I'm not able to reporduce the bug because it is
>> not possbile to move the sliders to get left>=right (so there is no bug
>> here :))
>>
>> I had a quick look to the code and it looks like it is quite simple to
>> fix that adding in backend_qt4.py a logic like:
>> if left>=right: left=right-right/1000.
>>
>> The main problem is that I'm not sure to add this fix at the best place
>> in the code.
>> 
>
> This should be fixed in svn 3709. Thank you for the report and the suggested 
> fix. In the future, please try to provide a little more context for your 
> patch, the file is 550 lines long.
>
> Darren
> 
It is fixed. Thanks.
Xavier
ps : I only provide developers with real unified diffs when I'm able to 
produce them ;)
-- 
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gn...@ob...
############################################ 
From: David D C. <dd...@la...> - 2007年08月14日 20:09:40
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Using
vlostring="$v_{lo}$=%5.2f" % (vlo)
doesn't work either.
Dave
David D Clark wrote:
> Hello,
> 
> I am trying to create some text on a plot with the following commands:
> 
> vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime)
> text(vlo,vlotime,vlostring)
> 
> However, the text is rendered literally --
> 
> $v_{lo}$=0.3 t=7961.66
> 
> instead of nicely formatted LaTeX like text
> 
> when I do
> 
> text(vlo,vlotime,"$v_{lo}=$")
> 
> without trying to add the str(...), it renders the expression correctly.
> 
> Any suggestions?
> Dave
> 
- -------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
- --
David D. Clark
Electrical Engineer
P-23, Neutron Science and Technology
ph. 505.667.4147 fx. 505.665.4121 pg. 505.996.1416
e-mail mailto:dd...@la...
GPG Public key 0x018D6523 available at http://www.us.pgp.net
http://www.gnupg.org has information about public key cryptography
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGwgvzNu7GcwGNZSMRAjrzAJ9mgSOdnbBf7uYpgrARdDnF6S/XBQCfUh1O
GKM4Xeg2wMhedNv/kyDmbTM=
=zW3m
-----END PGP SIGNATURE-----
From: Sim H. <sim...@gt...> - 2007年08月14日 19:51:27
When I updated from Matplotlib 0.90 to 0.90.1 the axis tick labels 
started overlaping the axes themselves. In 0.90 they are slightly 
offset and are readable, but in 0.90.1 they are very hard to read.
Is there some way I can fix this easily? I guess I can roll back to 
0.90 since I don't seem to notice any other differences/fixes in 0.90.1.
I am creating a 3D plot with this code, in case that helps:
 fig = pylab.figure()
 ax = axes3d.Axes3D(fig)
 for X, Y, Z, color in plotData:
 ax.plot3D(X,Y,Z, color = color)
 ax.set_xlabel('X')
 ax.set_ylabel('Y')
 ax.set_zlabel('Z')
 pylab.legend(legendText,
 'upper center', shadow=True)
 pylab.show()
-Sim
From: David D C. <dd...@la...> - 2007年08月14日 19:25:57
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I am trying to create some text on a plot with the following commands:
vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime)
text(vlo,vlotime,vlostring)
However, the text is rendered literally --
$v_{lo}$=0.3 t=7961.66
instead of nicely formatted LaTeX like text
when I do
text(vlo,vlotime,"$v_{lo}=$")
without trying to add the str(...), it renders the expression correctly.
Any suggestions?
Dave
- --
David D. Clark
Electrical Engineer
P-23, Neutron Science and Technology
e-mail mailto:dd...@la...
GPG Public key 0x018D6523 available at http://www.us.pgp.net
http://www.gnupg.org has information about public key cryptography
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGwgG0Nu7GcwGNZSMRAqRrAJ4kHL6bpFVFhJteHQ1uzQPtREFxkwCdFxe4
zw3F6ymJr5XSeJxwDQmBFjE=
=MIQ6
-----END PGP SIGNATURE-----
From: Tom D. <tom...@al...> - 2007年08月14日 19:01:58
You might take a look at tvtk.mlab and mavayi.
http://www.scipy.org/Cookbook/MayaVi
On 8/14/07, Eric Firing <ef...@ha...> wrote:
> Kaushik Ghose wrote:
> > Hi Everyone,
> >
> > I vaguely remember a comment from a poster a short while back that
> > suggested that 3D support in matplotlib was not serious. I would like to
> > ask what plans there are for 3D plotting support in this great library.
>
> There are no plans. The topic keeps coming up, but no one has come
> forward to put steady work into it. It is not entirely clear how much
> can be done using the present approach, which is a layer on top of a
> fundamentally 2D framework.
>
> Eric
> >
> > thanks!
> > -Kaushik
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Eric F. <ef...@ha...> - 2007年08月14日 17:42:04
Kaushik Ghose wrote:
> Hi Everyone,
> 
> I vaguely remember a comment from a poster a short while back that 
> suggested that 3D support in matplotlib was not serious. I would like to 
> ask what plans there are for 3D plotting support in this great library.
There are no plans. The topic keeps coming up, but no one has come 
forward to put steady work into it. It is not entirely clear how much 
can be done using the present approach, which is a layer on top of a 
fundamentally 2D framework.
Eric
> 
> thanks!
> -Kaushik
From: Kaushik G. <kg...@um...> - 2007年08月14日 16:03:33
Hi Everyone,
I vaguely remember a comment from a poster a short while back that 
suggested that 3D support in matplotlib was not serious. I would like to 
ask what plans there are for 3D plotting support in this great library.
thanks!
-Kaushik
From: Darren D. <dd...@co...> - 2007年08月14日 14:20:12
On Tuesday 14 August 2007 09:14:54 am Xavier Gnata wrote:
> Darren Dale wrote:
> > On Sunday 12 August 2007 07:05:38 pm Xavier Gnata wrote:
> >> OK my matplotlibrc was out of date. Now it works but I have found
> >> another but playing with the sliders of the backend:
> >> As the log is quite long, here are only the most relevant parts :
> >
> > [...]
> >
> >> It looks like that the ranges of the sliders are checked in a wrong way.
> >> It may be due to numerical rounding issues.
> >
> > Unfortunately I have my hands full at work, so I don't know when I will
> > be able to look into this. I would need more information before I could
> > start anyway: a simple script and a list of steps that reproduces the
> > problem, and does it only occur with the qt4 backend.
> >
> > Darren
>
> Using Qt4Agg as backend :
> import pylab
> pylab.plot([1,2])
> Then click on the "subplot configuration tool"
> Move the "left" slider to the right end on the slider.
> Python crashes because :
>
> ValueError: left cannot be >= right
>
> Using the TkAgg backend, I'm not able to reporduce the bug because it is
> not possbile to move the sliders to get left>=right (so there is no bug
> here :))
>
> I had a quick look to the code and it looks like it is quite simple to
> fix that adding in backend_qt4.py a logic like:
> if left>=right: left=right-right/1000.
>
> The main problem is that I'm not sure to add this fix at the best place
> in the code.
This should be fixed in svn 3709. Thank you for the report and the suggested 
fix. In the future, please try to provide a little more context for your 
patch, the file is 550 lines long.
Darren
From: Xavier G. <gn...@ob...> - 2007年08月14日 13:15:11
Darren Dale wrote:
> On Sunday 12 August 2007 07:05:38 pm Xavier Gnata wrote:
> 
>> OK my matplotlibrc was out of date. Now it works but I have found
>> another but playing with the sliders of the backend:
>> As the log is quite long, here are only the most relevant parts :
>> 
> [...]
> 
>> It looks like that the ranges of the sliders are checked in a wrong way.
>> It may be due to numerical rounding issues.
>> 
>
> Unfortunately I have my hands full at work, so I don't know when I will be 
> able to look into this. I would need more information before I could start 
> anyway: a simple script and a list of steps that reproduces the problem, and 
> does it only occur with the qt4 backend.
>
> Darren
> 
Using Qt4Agg as backend :
import pylab
pylab.plot([1,2])
Then click on the "subplot configuration tool"
Move the "left" slider to the right end on the slider.
Python crashes because :
ValueError: left cannot be >= right
Using the TkAgg backend, I'm not able to reporduce the bug because it is 
not possbile to move the sliders to get left>=right (so there is no bug 
here :))
I had a quick look to the code and it looks like it is quite simple to 
fix that adding in backend_qt4.py a logic like:
if left>=right: left=right-right/1000.
The main problem is that I'm not sure to add this fix at the best place 
in the code.
Could someone else have a look?
Xavier
-- 
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gn...@ob...
############################################ 
From: <fri...@gm...> - 2007年08月14日 11:19:05
Dear all,
I am making a contour plot using matplotlib. The title and axis annotations
require math symbols so I set usetex=True in the rc('text',usetex).
However that made ALL texts in LaTeX (incl. contour labels) and
the contour labels look not satisfying when rendered by TeX. What I needed
is LaTeX for all texts EXCEPT the contour labels (I'd like to use the
default sans-serif font for them.)
Can you tell me some hints?
Thanks in advance.
Cong.

Showing 15 results of 15

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 によって変換されたページ (->オリジナル) /