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

Showing 18 results of 18

From: Eric F. <ef...@ha...> - 2010年04月14日 19:58:35
John Hunter wrote:
> On Wed, Apr 14, 2010 at 2:14 PM, Jae-Joon Lee <lee...@gm...> wrote:
> 
>> John, the relevant code to define the "colors" attribute seems to be
>> written by you. Maybe this is some matlab convention? Can you comment
>> on this?
> 
> The original color letters did come from matlab, and some of the color
> RGB choices, like the background for the subplot gray, I got using a
> color picker on my screen for maximum compatibility, but I do not
> recall if that was the case for 'm', 'c' and 'y'. Most likely these
> were the rgb values of the matlab colors.
> 
> The html colors were submitted later by another user, and apparently
> we never checked for consistency. I think this is a wart, and I
> don't feel strongly about keeping it or changing it for consistency in
> the trunk ahead of 1.0 (it should remain as is on the branch). If we
> change it on the trunk, we should change the single letter codes to
> correspond to the html full color name standards, rather than the
> other way around.
I would be cautious about making this change. At least on my laptop 
screen, with the default white axes background, the single-letter colors 
show up better than the html versions. It makes sense to me for the 
single-letter colors to be chosen for good visibility and contrast in 
actual use, not for consistency with the html names. In fact, I see no 
good argument for consistency in this case.
Eric
> 
> JDH
> 
> ------------------------------------------------------------------------------
> 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: John H. <jd...@gm...> - 2010年04月14日 19:40:57
On Wed, Apr 14, 2010 at 2:14 PM, Jae-Joon Lee <lee...@gm...> wrote:
> John, the relevant code to define the "colors" attribute seems to be
> written by you. Maybe this is some matlab convention? Can you comment
> on this?
The original color letters did come from matlab, and some of the color
RGB choices, like the background for the subplot gray, I got using a
color picker on my screen for maximum compatibility, but I do not
recall if that was the case for 'm', 'c' and 'y'. Most likely these
were the rgb values of the matlab colors.
The html colors were submitted later by another user, and apparently
we never checked for consistency. I think this is a wart, and I
don't feel strongly about keeping it or changing it for consistency in
the trunk ahead of 1.0 (it should remain as is on the branch). If we
change it on the trunk, we should change the single letter codes to
correspond to the html full color name standards, rather than the
other way around.
JDH
From: Jae-Joon L. <lee...@gm...> - 2010年04月14日 19:14:23
On Sun, Apr 11, 2010 at 12:40 PM, Peter Butterworth <bu...@gm...> wrote:
> sorry if this has been covered before, but I must say I've found the
> following quite confusing :
> color="cyan" is not in fact equivalent to color='c'
>
>
> in colors.py :
>
> Commands which take color arguments can use several formats to specify
> the colors. For the basic builtin colors, you can use a single letter
>
>  - b : blue
>  - g : green
>  - r : red
>  - c : cyan
>  - m : magenta
>  - y : yellow
>  - k : black
>  - w : white
>
> in ColorConverter :
>  colors = {
>    'b' : (0.0, 0.0, 1.0),
>    'g' : (0.0, 0.5, 0.0),
>    'r' : (1.0, 0.0, 0.0),
>    'c' : (0.0, 0.75, 0.75),
>    'm' : (0.75, 0, 0.75),
>    'y' : (0.75, 0.75, 0),
>    'k' : (0.0, 0.0, 0.0),
>    'w' : (1.0, 1.0, 1.0),
>    }
>
> we are told 'c' is short for cyan. Yet color="cyan" is not equivalent
> to color='c'
>  'cyan'         : '#00FFFF'
>
> In [50]: rgb2hex((0.0, 0.75, 0.75))
> Out[50]: '#00bfbf'
>
Thank you for reporting.
It seems that it is not just "c", but the rgb values of "m" and "y"
are also different.
In [26]: cc.to_rgb("magenta")
Out[26]: (1.0, 0.0, 1.0)
In [27]: cc.to_rgb("m")
Out[27]: (0.75, 0, 0.75)
In [30]: cc.to_rgb("yellow")
Out[30]: (1.0, 1.0, 0.0)
In [31]: cc.to_rgb("y")
Out[31]: (0.75, 0.75, 0)
John, the relevant code to define the "colors" attribute seems to be
written by you. Maybe this is some matlab convention? Can you comment
on this?
Regards,
-JJ
> ------------------------------------------------------------------------------
> 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: Andreas H. <li...@hi...> - 2010年04月14日 19:07:25
Attachments: colorbar.png
Hello there,
using matplotlib 0.99, I have a problem with colorbars, which is illustrated
by the following code:
---8<-------
from matplotlib import ticker
import numpy as np
a = np.arange(676).reshape((26,26))
x = y = np.arange(26)
colorMap = mpl.cm.get_cmap('jet', 10)
colorNorm = mpl.colors.Normalize(vmin=0, vmax=400,clip=True)
plot = contourf(x,y,a,10,cmap=colorMap,norm=colorNorm, \
 locator=ticker.LinearLocator(10))
cb = colorbar(plot,orientation='horizontal',cmap=colorMap,norm=colorNorm, \
 extend='neither',spacing='uniform')
---8<-------
So I have data ranging from 0 up to say 675. I want to create a contour plot,
but the colorbar should only go up to 400, and all values higher than that
should be shown in the color of the maximum value 400, which is working 
fine.
However, the colorbar does not go from 0 to 400, but rather from 0 to 675:
---8<-------
In [52]: cb._boundaries
Out[52]:
array([ -6.75000000e-04, 7.50000000e+01, 1.50000000e+02,
 2.25000000e+02, 3.00000000e+02, 3.75000000e+02,
 4.50000000e+02, 5.25000000e+02, 6.00000000e+02,
 6.75000675e+02])
---8<-------
The colors shown are correct, but the colorbar looks ugly, because two 
thirds
of it are filled with the color of the maximum value.
According to the documentation
(http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.Normalize):
 If clip is True and the given value falls outside the range, the
returned
 value will be 0 or 1, whichever is closer.
So my question is: What do I need to do so that the colorbar actually has
the
range as specified by my colorNorm?
Thanks for your help,
Andreas.
From: Jae-Joon L. <lee...@gm...> - 2010年04月14日 18:53:24
On Sat, Apr 10, 2010 at 10:36 AM, arsbbr <ar...@gm...> wrote:
> but it doesn't
> work.
>
Can you provide more details of what you tried and "how" it does not
work. For example, an exception is raised? or code runs without any
error but the result is not correct?
With my simple test, all things seem fine. I didn't carefully check if
the output has a correct font selected, but at least the font was
different from the default cm font.
However, I noticed that the agg backend does not account the latex
preamble while caching the tex output, so changing preamble after a
text is cached (after some figure is drawn) does not work.
Regards,
-JJ
From: Friedrich R. <fri...@gm...> - 2010年04月14日 18:37:08
Attachments: crashtest.py
2010年4月14日 Jon Moore <jon...@ya...>:
> Hi,
>
> Find attched log.txt generated when trying to run your script. Any
> thoughts?
Sounds like a typo to me. Please give the new version of crashtest.py
a try, it prints stack tracebacks for each import statement into the
file, so we *should* be able to track it down with this.
The log file created with "#import calendar" commented out is already
20kB large, so maybe too large for the list. Your will be expected to
be some megabytes I guess :-( but only the last traceback should
matter.
Also I noticed that our import history is *quite* different. Make a
vimdiff or similar of my old log.txt and the log.txt you provided.
Note that I cannot make a working import because I have no mpl
currently on this MacBook.
Here comes an example output:
import operator, traceback follows:
 File "crashtest.py", line 24, in <module>
 import calendar
 File "crashtest.py", line 18, in new_import
 return old_import(name, *args, **kwargs)
 File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/calendar.py",
line 10, in <module>
 import locale as _locale
 File "crashtest.py", line 18, in new_import
 return old_import(name, *args, **kwargs)
 File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py",
line 202, in <module>
 import re, operator
 File "crashtest.py", line 17, in new_import
 traceback.print_stack()
so far,
hth,
Friedrich
From: Samuel T. S. <arc...@gm...> - 2010年04月14日 17:49:32
Hi guys and girls :D
I have a problem with my ubuntu server that it is 8.4 version, and that
version only bring matplotlib package 0.6.0 version.
so I have to modify my code to this version
but one thing I can't: the xscale('log') - wich make the graphics in
logaritimic scale of base 10.
how I do that on matplotlib 0.6.0?
or can anyone give me a link for this reference?
thanks in advanced
see ya
Samuel
From: Jeremy C. <jlc...@gm...> - 2010年04月14日 16:09:26
On Wed, Apr 14, 2010 at 9:35 AM, Ben Axelrod <BAx...@co...> wrote:
> This example shows how to use 2d plots in a 3d plot:
> http://matplotlib.sourceforge.net/examples/mplot3d/2dcollections3d_demo.html
>
> These examples may also help:
> http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/contour3d_demo3.html
> http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/pathpatch3d_demo.html
>
> -Ben
Yep those are what I needed. Thanks!
Jeremy
This example shows how to use 2d plots in a 3d plot:
http://matplotlib.sourceforge.net/examples/mplot3d/2dcollections3d_demo.html
These examples may also help:
http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/contour3d_demo3.html
http://matplotlib.sourceforge.net/trunk-docs/examples/mplot3d/pathpatch3d_demo.html
-Ben
-----Original Message-----
From: Jeremy Conlin [mailto:jlc...@gm...] 
Sent: Wednesday, April 14, 2010 11:14 AM
To: mat...@li...
Subject: [Matplotlib-users] Can I make a mplot3d PolyCollection Plot with projection on back wall
I want to make a plot similar to this demo:
http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html
but also make simple line plots on the "back wall" of the plot,
perhaps with the pyplot.plot command.
How can I do this?
Thanks,
Jeremy
------------------------------------------------------------------------------
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: Jeremy C. <jlc...@gm...> - 2010年04月14日 15:13:50
I want to make a plot similar to this demo:
http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html
but also make simple line plots on the "back wall" of the plot,
perhaps with the pyplot.plot command.
How can I do this?
Thanks,
Jeremy
From: Michael D. <md...@st...> - 2010年04月14日 14:19:09
Unfortunately, the current version of matplotlib requires Python 2.4 or 
later. You may be able to grab an older version from the archives on 
SourceForge, however, presuming you don't need any of matplotlib's 
recent features or bugfixes.
Mike
On 04/14/2010 07:46 AM, MariaLuisa Caprera wrote:
> Hi,
> I should add some matplotlib functions to my older project developed 
> with python 2.3 for windows.
> I can't find a link to download this extension for my version of Python .
> Please could someone suggest a possible solution?
> Thanks
>
>
> ------------------------------------------------------------------------------
> 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: Jon M. <jon...@ya...> - 2010年04月14日 12:09:15
Attachments: log.txt
Hi,
Find attched log.txt generated when trying to run your script. Any 
thoughts?
Regards
Jon
Friedrich Romstedt wrote:
> 2010年3月12日 Jon Moore <jon...@ya...>:
> 
>> I tried getting a colleague of mine to carryout your email but without any
>> joy. Trying the import commands you suggested my colleague reported .mpl
>> .dates and .pyplot all crashed with the same exception but .mlab worked ok.
>> The
>> import matplotlib.pylab with the custom import command didn't work as the
>> exception occurs and the console (spyder) shuts down, so cannot see what
>> happened. IPython also does the same, I'd like to try IDLE at some point.
>>
>> My colleague couldn't get the log file stuff to work (maybe as she doesn't
>> normally use python), so I may have to wait until I'm next back there in 4-5
>> weeks to report back properly.
>> 
>
> Ok, maybe send your colleague the script attached. Simply run:
>
> $ python crashtest.py
>
> It creates ./log.txt with the log output of the packages attempted to
> load. The last line is the offending import. I also attach the
> result of my fully successful run.
>
> And when you find something out, maybe send it also to the list.
>
> Lots of success!
> Friedrich
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 5027 (20100414) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
> 
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5027 (20100414) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
From: Sandro T. <mat...@gm...> - 2010年04月14日 11:59:04
On Wed, Apr 14, 2010 at 13:56, David Kremer <dav...@gm...> wrote:
> Hello, I would like to ask you for an IRC channel in addition to the mailing
> list. If anyone would like to keep it up, it could be great to have a 24h/24h
> support on the irc channel.
FYI, mpl questions are accepted quite well on #scipy on freenode network.
Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
From: David K. <dav...@gm...> - 2010年04月14日 11:54:29
Hello, I would like to ask you for an IRC channel in addition to the mailing 
list. If anyone would like to keep it up, it could be great to have a 24h/24h 
support on the irc channel.
Thank you very much.
David Kremer
 
Hello,
I would like to ask you a way to fill certain regions with a specific motif
when running imshow(). I take the following example :
For certain value, instead of writing directly a numerical result, I would
like to fill my table with 'x'. For other specific values, with 'o'. How take 
care of this with imshow, and how assign a specific color to such a specific 
region ?
I saw something about the spy method. Do you think it's possible to use it
combined with the imshow() capabilities ?
I'm wondering also about the possibility to make logical 'or' on the data, in 
the order to select an area to fill with a custom color.
Thank you very much.
greetings,
David Kremer
From: MariaLuisa C. <ca...@at...> - 2010年04月14日 11:46:54
Hi,
I should add some matplotlib functions to my older project developed with python 2.3 for windows.
I can't find a link to download this extension for my version of Python . 
Please could someone suggest a possible solution?
Thanks
From: atomatic <ca...@at...> - 2010年04月14日 11:23:48
Hi,
Have you solved your problem ? I'm searching matplotlib for python 2.3 under
windows . Can you help me?
Thanks.
Schnappauf, Andreas wrote:
> 
> Hi there,
> I was searching for an older version of matplotlib for using it with
> python 2.2.1 (parts of the project can only be interpreted with this old
> version :().
> Is there a package for an installation under windows (just like the
> current versions)?
> 
> I tried to build 0.80 and 0.87 from the sources and had no success.
> Thx for any help!
> 
> Greetings
> Andreas
> 
> 
> ________________________________
> iSyst Intelligente Systeme GmbH
> Nordostpark 91 | 90411 Nuernberg
> Geschaeftsfuehrer: Prof. Dr.-Ing. Hans Rauch, Christine Rauch, Daniel
> Heinrich
> Sitz der Gesellschaft: Nuernberg
> Registergericht: Amtsgericht Nuernberg HRB 17887
> Steuernr. 241/129/40894 | USt-IdNr.: DE212895677
> 
> ------------------------------------------------------------------------------
> 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
> 
> 
-- 
View this message in context: http://old.nabble.com/Older-Version-of-Matplotlib-for-Python-2.2.1-tp27781592p28231225.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Gökhan S. <gok...@gm...> - 2010年04月14日 00:25:47
Hello,
Could someone confirm me if there is any malfunctioning using these simple
figure functions?
plt.figure(figsize=(2,3))
plt.figure(figsize=(5,6))
plt.figure(figsize=(9,15))
plt.figure(figsize=(19,5))
For some reason I can't get Qt4Agg creating last two figures in specified
sizes. (WXAgg works fine.)
matplotlib.__version__
'1.0.svn'
matplotlib.__revision__
'$Revision: 8226 $'
from PyQt4 import QtCore
QtCore.PYQT_VERSION_STR
'4.7'
Thanks
-- 
Gökhan
1 message has been excluded from this view by a project administrator.

Showing 18 results of 18

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