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






Showing 10 results of 10

From: Ryan P. <pav...@os...> - 2008年11月07日 22:14:57
Hi. I am currently using *plot_wireframe* to create 3D wireframe images.
Is there any way to add a color gradient to these types of figures similar
to the image in this link: http://www.gams.com/solvers/matlab.gif ? If this
cannot be accomplished with the *plot_wireframe* function, is there an
alternative method for creating 3D meshes that can have a color gradient?
Additionally, the tick labels on the 3D plots i am making intersect with the
frame of the plotting area. Is there a way to add more space between the
plotting area and these ticks to clean up the image?
Thanks for your help,
ryan
From: Gideon S. <si...@ma...> - 2008年11月07日 20:40:58
yes that seems to work. there are no errors when i don't use the tex.
-gideon
On Nov 7, 2008, at 1:59 PM, Jouni K. Seppänen wrote:
> Gideon Simpson <si...@ma...> writes:
>
>> Verbose output attached:
>
> It looks like it is happening in dviread. Just to make sure this is 
> the
> culprit, could you temporarily disable usetex in your matplotlibrc 
> file
> and see if the error goes away?
>
> -- 
> Jouni K. Seppänen
> http://www.iki.fi/jks
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge
> Build the coolest Linux based applications with Moblin SDK & win 
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in 
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Michael D. <md...@st...> - 2008年11月07日 19:27:55
I didn't see any error messages in your mail...
You can determine the backend you're set to by doing:
 >>> import matplotlib
 >>> matplotlib.get_backend()
'GTKAgg'
If it's 'PDF', 'Ps', 'SVG', 'Agg', or 'Cairo', it's a non-gui backend, 
and therefore no gui window will be displayed.
This is usually set by the "backend" parameter in 
~/.matplotlib/matplotlibrc.
Often the default backend is set to Agg if no GUI frameworks were found 
at compile time. Given the recent version of matplotlib you're running, 
I assume you built from source? You may need to install a gui framework 
(from Fedora's yum repos should be recent enough) and rebuild matplotlib.
Mike
Ashish Asgekar wrote:
> Hello,
> I am running Python 2.5.2 on Fedora Core 7. recently removed
> previous versions of Scipy and Numpy (installed previously using YUM),
> and compiled and installed their latest versions using the source
> code. i also installed MatPlotLib from source. their versions are
> given below:
>
> Python 2.5.2
> Numpy 1.1.0
> Scipy 0.6.0
> MatPlotLib 0.98.3
> WxPython
>
> I try simple plot commands as the ones below. however, no plot
> window appears anywhere. i think i am doing something really silly
> here, like not linking to backend (see the error message below). i
> have looked at matplotlibrc file in my home area
> ~/matplotlib/.matplotlibrc
>
> plz suggest some remedy.
>
> thanks,
> ashish
>
>
> --------------------------------------- code
> import matplotlib.pyplot as plt
> plt.plot([1,2,3])
> plt.ylabel('some numbers')
> plt.show()
> -------------------------------------------
>
>
> ------------------------------------------- response in Python
>
> Python 2.5 (r25:51908, Nov 6 2007, 16:54:01)
> [GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> 
>>>> import matplotlib.pyplot as plt
>>>> plt.plot([1,2,3])
>>>> 
> [<matplotlib.lines.Line2D object at 0xa7ff2cc>]
> 
>>>> plt.ylabel('some numbers')
>>>> 
> <matplotlib.text.Text object at 0xa7d21ec>
> 
>>>> plt.show()
>>>> 
> -------------------------------------------
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Jouni K. S. <jk...@ik...> - 2008年11月07日 18:59:59
Gideon Simpson <si...@ma...> writes:
> Verbose output attached:
It looks like it is happening in dviread. Just to make sure this is the
culprit, could you temporarily disable usetex in your matplotlibrc file
and see if the error goes away?
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Ashish A. <ash...@gm...> - 2008年11月07日 18:43:13
Hello,
 I am running Python 2.5.2 on Fedora Core 7. recently removed
previous versions of Scipy and Numpy (installed previously using YUM),
and compiled and installed their latest versions using the source
code. i also installed MatPlotLib from source. their versions are
given below:
Python 2.5.2
Numpy 1.1.0
Scipy 0.6.0
MatPlotLib 0.98.3
WxPython
 I try simple plot commands as the ones below. however, no plot
window appears anywhere. i think i am doing something really silly
here, like not linking to backend (see the error message below). i
have looked at matplotlibrc file in my home area
~/matplotlib/.matplotlibrc
 plz suggest some remedy.
 thanks,
 ashish
--------------------------------------- code
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.ylabel('some numbers')
plt.show()
-------------------------------------------
------------------------------------------- response in Python
Python 2.5 (r25:51908, Nov 6 2007, 16:54:01)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,2,3])
[<matplotlib.lines.Line2D object at 0xa7ff2cc>]
>>> plt.ylabel('some numbers')
<matplotlib.text.Text object at 0xa7d21ec>
>>> plt.show()
-------------------------------------------
-- 
-----------------------------------------------------------------------------
Dr. Ashish Asgekar
Physics Group,
BITS Pilani-Goa Campus,
Zuarinagar, Goa.
India 403 726
Ph: +91-832-2580 410
 : +91-832-2557 024
Fx: +91-832--255 7033
www.bits-goa.ac.in/Departments/Physics/Faculty.htm
-----------------------------------------------------------------------------
From: Gideon S. <si...@ma...> - 2008年11月07日 18:39:40
Attachments: debug.out
Verbose output attached:
From: Jouni K. S. <jk...@ik...> - 2008年11月07日 18:30:49
Gideon Simpson <si...@ma...> writes:
> 1. I find that the eps's generated, for whatever reason, do not 
> automatically conform to something that Preview.app can open. it 
> generates the error:
>
> PostScript Conversion Error
> The PostScript file "test.eps" could not be converted to a PDF file.
Does anyone know how to debug or trace this internal conversion of
Preview.app?
> 2. My fink installed QT4 backend gives an error while trying to save 
> a figure as PDF using the GUI. I get:
>
> [Errno 4] Interrupted system call
Could you repeat this with --verbose-debug-annoying and send the output
to this list (or open a bug in the sourceforge tracker and attach the
output as a file)?
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Gideon S. <si...@ma...> - 2008年11月07日 15:13:30
1. I find that the eps's generated, for whatever reason, do not 
automatically conform to something that Preview.app can open. it 
generates the error:
PostScript Conversion Error
The PostScript file "test.eps" could not be converted to a PDF file.
However, the eps's are fundamentally there. I can open them in GIMP 
and use ps2pdf on them.
2. My fink installed QT4 backend gives an error while trying to save 
a figure as PDF using the GUI. I get:
[Errno 4] Interrupted system call
Other file formats do not generate this error.
-gideon
From: Michael D. <md...@st...> - 2008年11月07日 13:24:57
John Hunter wrote:
> What say you other developers -- any major holdups?
I think this bug is reasonably serious, if anyone wants to take a look 
at it. It affects PDF, PS, SVG as well as the Gtk and GtkCairo 
mentioned in the report. I've taken a kick at it a couple of times, but 
haven't found the magic incantation. I suspect it's a one-liner fix, 
just don't know which one... ;)
https://sourceforge.net/tracker/index.php?func=detail&aid=2160909&group_id=80706&atid=560720
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
Michael Droettboom wrote:
> Why are you turning autoscaling off and on? When you turn it off, the
> autoscale mechanism effectively "ignores" any plots until you turn it
> back on. If you remove
>
> gca().set_autoscale_on(False)
>
> all seems to work fine.
>
> Is your question that you want to autoscale to a plot after creating it?
I want to be able to "freeze" the plot when adding another curve (because I
want to compare the added curve and a previous one in a small portion of
the X/Y plane, this portion may have been chosen by a zoom of the user
before adding the curve).
Once this comparison has been performed, the user may want to autoscale the
complete plot. If the added curve is larger than the previous one, the
autoscale should take into account the larger curve.
Julien
-- 
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.9&1+,\'Z
(55l4('])"
"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)

Showing 10 results of 10

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