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



Showing 22 results of 22

From: Andrea G. <and...@gm...> - 2010年03月02日 23:57:40
Hi All,
 I believe this question has been already asked in the past (I
found something at
http://old.nabble.com/A-good,-interactive-plotting-package-td15396445.html).
I use matplotlib extensively in our applications, and some of my users
repetitively asked for a way to customize *in runtime* the plots my
apps generate. I.e., the app brings up a figure with a bunch of lines,
points and texts, and they would like to change this linewidth, the
colour of that point, the appearance of an axis, the legend keys and
so on. I am currently answering "it can't be done at the moment" :-D.
It is obviously not true, it just require some (a lot, maybe) work.
Now, I know nothing about the other backends, but I know something
about wx and I believe it is doable. Obviously, if my job was software
programming and not reservoir engineering I would already have given
it a try, but unfortunately we only get 24 hours per day...
I don't think anything like this already exists, but it's an innocent
question and I hope I won't be kicked for asking :-D . If someone
knows about a possible/existing implementation, or even a start of an
implementation, please let me know.
Thank you.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/
From: Angus M. <am...@gm...> - 2010年03月02日 23:22:38
Hi all,
I'm playing around with plotting with the Lambert transform. I want to
only plot one hemisphere at a time.
I see that if I create the appropriate axes:
ax = plt.subplot(111, projection='lambert')
the resulting axis object's ax.get_xlim() and ax.get_ylim() methods
give the limits in rads of the plot, but the corresponding
ax.set_xlim(), and ax.set_ylim() functions don't do anything. Is there
an alternative way to achieve my goal?
Many thanks,
Angus.
-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
From: Friedrich R. <fri...@gm...> - 2010年03月02日 23:17:19
Bringing this to the list and not to Jon alone ...
2010年3月1日 Jon Moore <jon...@ya...>:
> I'm using the Python(x,y) distribution which comes with matplotlib for
> Windows. My OS is Windows XP with all updates and service packs on an
> AMD Athlon 2600+ PC with ATI Radeon 9600 graiphics card.
>
> Python will work fine for anything that doesn't import the pylab
> component (I can import matplotlib itself no problem as well as numpy
> etc) but if I try to import pylab I get:-
>
> "An unhandled exception occured in pythonw.exe [3976]"
Hmm, I'm wondering why no one in answering your post. May you please
do the following:
I assume that you aren't so much familiar with Python etc., because
you didn't do the following steps on your own. If this is wrong,
please feel not offended.
Please try:
import matplotlib.mpl
import matplotlib.dates
import matplotlib.mlab
import matplotlib.pyplot
This should be the essential imports done by import matplotlib.pylab
Can you also do the following:
import __builtin__
old_import = __import__
def new_import(name, *args, **kwargs):
 print name
 return old_import(name, *args, **kwargs)
__builtin__.__import__ = new_import
and then type:
import matplotlib.pylab
Or do the monkeypatch after import matplotlib, if that makes no
trouble at all. It will print all the import attempts before
executing them.
I'm curious at what import it fails ...
I also wonder why it's pythonw.exe. It means that you have no output
on console. In this case:
import sys
outfile = open('log.txt', 'w')
sys.stdout = outfile
sys.stderr = outfile
This will log the hidden output in "log.txt".
Friedrich
From: Jae-Joon L. <lee...@gm...> - 2010年03月02日 22:51:12
Do you have any link to an example plot?
I googled it but not much luck.
Is it like a polar plot without the bottom half?
Regards,
-JJ
On Tue, Mar 2, 2010 at 1:48 AM, R Fritz <rfritz@u.washington.edu> wrote:
> I'd like to be able to generate type C photometry plots with
> matplotlib. The standard co-ordinate system for these has 0 degrees at
> the bottom (nadir) of the plot, with values increasing
> counterclockwise. Is there anyway I can transform the co-ordinates that
> matplotlib uses to do this?
> --
> Randolph Fritz
> design machine group, architecture department, university of washington
> rfritz@u.washington.edu -or- rfr...@gm...
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Ben A. <BAx...@co...> - 2010年03月02日 22:03:03
Here is a partial solution. If you use the SVN code, check out this example:
http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/pathpatch3d_demo.html
 
I haven't ever done it, but I think you can create some kind of image patch.
-Ben
-----Original Message-----
From: John [H2O] [mailto:was...@gm...] 
Sent: Tuesday, March 02, 2010 1:10 PM
To: mat...@li...
Subject: [Matplotlib-users] Axes3D and basemap
Has anyone ever used a basemap instance as the 'floor' of an Axes3D plot? 
What I'm looking for is example code to do something like this:
http://www.dfanning.com/tips/scatter3d_on_map.jpg
Thanks,
john
--
View this message in context: http://old.nabble.com/Axes3D-and-basemap-tp27759152p27759152.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Heiko B. <hei...@sn...> - 2010年03月02日 21:30:23
Hi,
I use the text.latex.preamble rc setting to customize my plots.
Everything works fine. However, a comma in this rc setting is
interpreted as a new-line, thus, I wonder how can I create a LaTeX
preamble that contains a comma? The statement
matplotlib.rcParams['text.latex.preamble']=r"\usepackage[garamond,sfscaled=false]{mathdesign}"
will produce a preamble with the two lines
\usepackage[garamond
sfscaled=false]{mathdesign}
Which is not what I desire.
	Regards,
	Heiko
-- 
-- Talente finden Lösungen, Genies entdecken Probleme.
-- (Hans Krallsheimer)
-- Cluster Computing @ http://www.clustercomputing.de
-- Heiko Bauke @ http://www.mpi-hd.mpg.de/personalhomes/bauke
From: John [H2O] <was...@gm...> - 2010年03月02日 18:09:39
Has anyone ever used a basemap instance as the 'floor' of an Axes3D plot? 
What I'm looking for is example code to do something like this:
http://www.dfanning.com/tips/scatter3d_on_map.jpg
Thanks,
john
-- 
View this message in context: http://old.nabble.com/Axes3D-and-basemap-tp27759152p27759152.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Amenity A. <am...@en...> - 2010年03月02日 16:18:13
March is shaping up to be as busy as ever: planning
SciPy 2010 (http://conference.scipy.org/scipy2010),
two great webinars...and a new release of EPD!
* Enthought Python Distribution 6.1 *
In EPD 6.1, NumPy and SciPy are dynamically linked
against the MKL linear algebra routines. This allows
EPD users to seamlessly benefit from the highly
optimized BLAS and LAPACK routines in the MKL.
We were certainly expecting to observe performance
improvements, but we were surprised at just how
dramatic the optimizations were for applications
run on dual and multi-core Intel(R) processors.
Refer to our benchmarking tests for more info:
 http://www.enthought.com/epd/mkl/
Then try it yourself!
 http://www.enthought.com/products/getepd.php
* Enthought March Webinars *
This Friday, Travis Oliphant will lead a webinar on
optimization methods in EPD. Then, on the 19th, we'll
host a webinar on Python libraries for integrating
C and C++ code, namely Weave, Cython, and ctypes.
Enthought Python Distribution Webinar
How do I... optimize?
Friday, March 5: 1pm CST/7pm UTC
Wait-list (for non-subscribers): email
 am...@en...
Scientific Computing with Python Webinar
Weave, Cython, and ctypes
Friday, March 19: 1pm CST/7pm UTC
Register:
 https://www.gotomeeting.com/register/335697152
Enjoy!
~ The Enthought Team ~
Open Course Austin, TX:
 http://www.enthought.com/training/open-austin-sci.php
 Python for Scientists and Engineers
 * May 17- 19
 Interfacing with C / C++ and Fortran
 * May 20
 Introduction to UIs and Visualization
 * May 21
Financial Open Course, London, UK:
 http://www.enthought.com/training/open-london-fin.php
 Python for Quants
 * March 8-10
 Software Craftsmanship
 * March 11
 Introduction to UIs and Visualization
 * March 12
* Pricing, licensing, and training inquiries *
Didrik and Matt are dedicated to answering your
questions and getting you the support you need.
US : Matt Harward
mha...@en...
Europe: Didrik Pinte
dp...@en...
From: John H. <jd...@gm...> - 2010年03月02日 15:28:33
On Tue, Mar 2, 2010 at 5:13 AM, Dunx <du...@ho...> wrote:
>
> Hi,
>
> I know about the difference between pylab.psd and mlab.psd, but in theory
> the only difference between the returned values is:
>
> pylab.psd = 10*log10(mlab.psd)
>
> Except this is not true, there is noticeable difference:
>
> pylab.psd = 23.4962 (all these pylab.psd values are read from graph)
> 10*log10(mlab.psd) = 17.2852
>
> pylab.psd = 18.8973
> 10*log10(mlab.psd) = 12.8149
>
> pylab.psd = 4.92
> 10*log10(mlab.psd) = -2.247
>
> These all look suspiciously out by around 2pi, although by no means exact.
> Any ideas?
>
> code is:
> pylab.psd(input, NFFT=512, Fs=sampleRate, window=blackman(512)) #graph
> x,y = mlab.psd(input, NFFT=512, Fs=sampleRate, window=blackman(512)) #look
> at x
What version of mpl are you using? Could you try setting your
matplotlib rc parameter path.simplify to False? There is a known bug
in the released version of mpl that causes path simplification to
render lines improperly. Looking at the code, Axes.psd just calls
mlab.psd and then plots 10*log10(pxx), so if there is a difference the
most likely culprit is a rendering bug.
See http://matplotlib.sourceforge.net/users/customizing.html for
information on how to change your default matplotlib rc parameters.
Christoph, this is a serious bug that merits a branch bugfix release
ASAP. I will do the src release if you can do the win32 release.
Perhaps we can find someone who can build the OSX binaries for us
since my OSX box is dead. By I don't want to hold the release for
want of OSX binaries since this is a recurrent and serious problem.
JDH
From: Alan G I. <ala...@gm...> - 2010年03月02日 15:03:50
On 2/25/2010 6:22 PM, Friedrich Romstedt wrote:
> Ok, it's rereleased now under MIT,
> github.com/friedrichromstedt/diagram_cl . I'm having somewhat trouble
> accessing my web server at the moment, so please find it on github.
> The docu onwww.friedrichromstedt.org 
Including the link http://www.friedrichromstedt.org/index.php?m=186 
would be helpful;
it took a couple clicks to find it.
Also, apologies if you did and I do not recall, but posting to the
SciPy list might hook you up with more interested people. Be sure
to include a clear statement of the problem you are addressing.
(It is kind of buried in your introductory text.)
Cheers,
Alan
From: Alexander D. <ale...@la...> - 2010年03月02日 14:45:12
Hi,
that is very interesting. So what about the following image:
test_large.png
which has been create with the exact same code. Does this file has an
alpha channel? Because this file I can see clearly on my browser.
Cheers
 Alex
On Tue, Mar 2, 2010 at 15:05, Renato Alves <rj...@ig...> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Quoting Alexander Dietz on 03/02/2010 01:27 PM:
>> Hi,
>>
>> thanks for testing. So it looks like a bug in firefox from 3.5.8 ->
>> 3.6, or do you see any strange things happening in the file to create
>> this image?
>
> Tested here on firefox 3.6 (Ubuntu) and I cannot reproduce what you
> described.
>
> Looking at the files, the only difference is that one png has an alpha
> channel while the other one doesn't. The one that caused you problems is
> the one that has the alpha channel.
>
> You should probably check external dependencies like libpng (1.2.37-1 here).
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkuNGzAACgkQYh11EUYTX9SarQCdHuUkqBzcLJq7A8R37QCrh0p4
> Vl8AmQGE/ye1ylMueVUq5pWxEj924udU
> =QYcO
> -----END PGP SIGNATURE-----
>
From: John H. <jd...@gm...> - 2010年03月02日 14:31:32
On Tue, Mar 2, 2010 at 4:05 AM, Alexander Dietz
<ale...@la...> wrote:
> Hi,
>
> I have trouble seeing a png image that I have created with matplotlib
> (0.99.1.1) in my firefox browser( 2.6) and I am not sure if it is a
> browser issue of a bug in matplotlib.
Strange -- I can see it fine in firefox 3.5 on Solaris. Haven't seen
this problem before.
JDH
From: John H. <jd...@gm...> - 2010年03月02日 14:07:45
On Mon, Mar 1, 2010 at 8:30 PM, kotsumu <tru...@ho...> wrote:
>
> I have a X Variable in years and 2 y variables. That I want to plot on a
> single graph.
> I have already listed my X variable and 2 y variables in a list but I don't
> know how to plot them on the single graph.
>
> My x variable for example 1948 is not in the scale of for example 0.48...
>
> What should I do? The list are all in consistent lenght.
Take a look at the pyplot tutorial -- the first section covers how to
do this. Ie, see the 3rd graph/example from the top
http://matplotlib.sourceforge.net/users/pyplot_tutorial.html
JDH
From: Renato A. <rj...@ig...> - 2010年03月02日 14:07:13
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoting Alexander Dietz on 03/02/2010 01:27 PM:
> Hi,
> 
> thanks for testing. So it looks like a bug in firefox from 3.5.8 ->
> 3.6, or do you see any strange things happening in the file to create
> this image?
Tested here on firefox 3.6 (Ubuntu) and I cannot reproduce what you
described.
Looking at the files, the only difference is that one png has an alpha
channel while the other one doesn't. The one that caused you problems is
the one that has the alpha channel.
You should probably check external dependencies like libpng (1.2.37-1 here).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuNGzAACgkQYh11EUYTX9SarQCdHuUkqBzcLJq7A8R37QCrh0p4
Vl8AmQGE/ye1ylMueVUq5pWxEj924udU
=QYcO
-----END PGP SIGNATURE-----
From: Alexander D. <ale...@la...> - 2010年03月02日 13:27:47
Hi,
thanks for testing. So it looks like a bug in firefox from 3.5.8 ->
3.6, or do you see any strange things happening in the file to create
this image?
Cheers
 Alex
On Tue, Mar 2, 2010 at 14:19, Johann Rohwer <jr...@su...> wrote:
> On Tuesday 02 March 2010, Alexander Dietz wrote:
>> This is the original image created with the script in the same
>> directory (and which I can't see. I don't neither get a warning nor
>> an error, just a bnalk screen:
>> http://atlas3.atlas.aei.uni-hannover.de/~dietz/Test/test.png
>>
>> while this one I have created with converting to jpg and back to
>> png. The sizes are different, and this one I can see in my browser
>> http://atlas3.atlas.aei.uni-hannover.de/~dietz/Test/test2.png
>
> I can see both images in my browser, they look (virtually) identical.
>
> Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100218
> Mandriva Linux/1.9.1.8-0.1mdv2010.0 (2010.0) Firefox/3.5.8 (.NET CLR
> 3.5.30729)
>
> Johann
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Johann R. <jr...@su...> - 2010年03月02日 13:19:58
On Tuesday 02 March 2010, Alexander Dietz wrote:
> This is the original image created with the script in the same
> directory (and which I can't see. I don't neither get a warning nor
> an error, just a bnalk screen:
> http://atlas3.atlas.aei.uni-hannover.de/~dietz/Test/test.png
> 
> while this one I have created with converting to jpg and back to
> png. The sizes are different, and this one I can see in my browser
> http://atlas3.atlas.aei.uni-hannover.de/~dietz/Test/test2.png
I can see both images in my browser, they look (virtually) identical.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100218 
Mandriva Linux/1.9.1.8-0.1mdv2010.0 (2010.0) Firefox/3.5.8 (.NET CLR 
3.5.30729)
Johann
From: Dunx <du...@ho...> - 2010年03月02日 11:13:42
Hi,
I know about the difference between pylab.psd and mlab.psd, but in theory
the only difference between the returned values is:
pylab.psd = 10*log10(mlab.psd)
Except this is not true, there is noticeable difference:
pylab.psd = 23.4962 (all these pylab.psd values are read from graph)
10*log10(mlab.psd) = 17.2852
pylab.psd = 18.8973
10*log10(mlab.psd) = 12.8149
pylab.psd = 4.92
10*log10(mlab.psd) = -2.247
These all look suspiciously out by around 2pi, although by no means exact.
Any ideas?
code is:
pylab.psd(input, NFFT=512, Fs=sampleRate, window=blackman(512)) #graph
x,y = mlab.psd(input, NFFT=512, Fs=sampleRate, window=blackman(512)) #look
at x
-- 
View this message in context: http://old.nabble.com/PSD-amplitude-disparity-tp27754632p27754632.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Alexander D. <ale...@la...> - 2010年03月02日 10:05:44
Hi,
I have trouble seeing a png image that I have created with matplotlib
(0.99.1.1) in my firefox browser( 2.6) and I am not sure if it is a
browser issue of a bug in matplotlib.
Here are two examples of the image:
This is the original image created with the script in the same
directory (and which I can't see. I don't neither get a warning nor an
error, just a bnalk screen:
http://atlas3.atlas.aei.uni-hannover.de/~dietz/Test/test.png
while this one I have created with converting to jpg and back to png.
The sizes are different, and this one I can see in my browser
http://atlas3.atlas.aei.uni-hannover.de/~dietz/Test/test2.png
Could the png file be corrupted? In other browsers or tools like
kview, okular etc I have no problems to open/print both images.
Thanks
 Alex
From: R F. <rfritz@u.washington.edu> - 2010年03月02日 06:55:16
I'd like to be able to generate type C photometry plots with 
matplotlib. The standard co-ordinate system for these has 0 degrees at 
the bottom (nadir) of the plot, with values increasing 
counterclockwise. Is there anyway I can transform the co-ordinates that 
matplotlib uses to do this?
-- 
Randolph Fritz
 design machine group, architecture department, university of washington
rfritz@u.washington.edu -or- rfr...@gm...
From: Jae-Joon L. <lee...@gm...> - 2010年03月02日 02:40:51
John and T J,
L1587 at lines.py
 def set_mfc(self, val):
 'alias for set_markerfacecolor'
 self.set_markerfacecolor(val, alt=alt)
"alt" is not defined and it currently raises an exception.
By the way, I noticed that the current approach is to implement
fillstyle for EVERY markers.
An alternative approach would be using a big enough circle for
fillstyle and clip it with the full marker path.
The number of "draw_markers" call increases but the code will be much
simplified and more easy to maintain. Just a thought.
Regards,
-JJ
On Tue, Feb 16, 2010 at 9:39 PM, John Hunter <jd...@gm...> wrote:
> On Mon, Feb 15, 2010 at 8:28 PM, T J <tj...@gm...> wrote:
>> On Mon, Feb 15, 2010 at 5:22 PM, John Hunter <jd...@gm...> wrote:
>>> Very nice and thorough work. I think this should be included, but
>>> I'll wait to hear from other developers before committing. Could you
>>> confirm that the unit tests pass?
>>>
>>>>>> import matplotlib
>>>>>> matplotlib.test()
>>>
>>
>> Confirmed on rev 8133:
>>
>> Ran 124 tests in 341.585s
>>
>> FAILED (KNOWNFAIL=2, errors=2)
>> and the errors were something to do with hexbin extents and the figimage method.
>>
>
> Great -- I committed this patch in r8138
>
>
>>> I think the markerangle would also be a useful contribution, though it
>>> would render some of the markers redundant (eg triangle left, right,
>>> etc, would all just be triangles with different angles...)
>>>
>>
>> That was a concern I had as well, but I suppose > ^ v < (etc) could
>> just be considered shortcuts to particular angles. Presumably, we
>> would not be removing them. Correct? Also, is the standard to have
>> the angle specified in degrees? So what is more useful: markerangle
>> or markerdeg?
>
> We would definitely be leaving these as shortcuts and for backward
> compatibility. And yes the standard is to use degrees -- for
> consistency with the text "rotation" property, we may want
> markerrotation specified in degrees.
>
>>
>> The other difference is that when one specifies fillstyle='left', then
>> it would only apply to the marker at 0 degrees. Whereas, marker='v',
>> fillstyle='left', markerangle=0 would correspond to marker='^',
>> fillstyle='right', markerangle=180  (or something like that).
>
> You can think about what the right way to do this is. My first
> inclination is that that left, right, etc, apply to the unrotated
> marker, and then you apply the rotation. So 'd' with markerrotation=0
> and fillstyle='left' would be identical to 'd' with fillstyle='right'
> and markerrotation=180. But any convention you want to apply would
> probably be fine as long as it is documented. Note I am not sure this
> is a terribly useful feature, but it might be marginally useful and it
> seems like something that could be implemented unobtrusively. So
> don't kill yourself on it.
>
> Thanks again for the nice work.
>
> JDH
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: kotsumu <tru...@ho...> - 2010年03月02日 02:36:47
I have a X Variable in years and 2 y variables. That I want to plot on a
single graph.
I have already listed my X variable and 2 y variables in a list but I don't
know how to plot them on the single graph.
My x variable for example 1948 is not in the scale of for example 0.48...
What should I do? The list are all in consistent lenght.
-- 
View this message in context: http://old.nabble.com/Plotting-2-Y-Vars-1-X-Var-tp27751576p27751576.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: John H. <jd...@gm...> - 2010年03月02日 02:30:41
On Mon, Mar 1, 2010 at 8:12 PM, Jae-Joon Lee <lee...@gm...> wrote:
> John and T J,
>
> L1587 at lines.py
>
>  def set_mfc(self, val):
>    'alias for set_markerfacecolor'
>    self.set_markerfacecolor(val, alt=alt)
>
> "alt" is not defined and it currently raises an exception.
Fixed -- thanks for the catch.
> By the way, I noticed that the current approach is to implement
> fillstyle for EVERY markers.
> An alternative approach would be using a big enough circle for
> fillstyle and clip it with the full marker path.
> The number, of "draw_markers" call increases but the code will be much
> simplified and more easy to maintain. Just a thought.
We do some significant optimizations in the agg backend in
RendererAgg::draw_markers with cached rendered markers, so some extra
machinery would have to be pushed into the backend to continue
supporting this optimization if we wanted to follow this suggestion.

Showing 22 results of 22

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