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

Showing 6 results of 6

From: Darren D. <dd...@co...> - 2004年07月16日 22:43:49
Attachments: dd55.vcf
Can text created with mathtext can be rotated? I am trying to label a y 
axis like
y = ylabel(r'$rm{Temperature} (^\circ C)$')
and y.set_rotation() does not respond to 'horizontal' or 'vertical' 
settings.
Darren
-- 
Darren S. Dale
dd...@co...
PGP public key available
From: Jonathan H. <ha...@ph...> - 2004年07月16日 21:58:24
I've had a recurring issue for about 5 days now.
I am running a Fedora Core 2 linux box, which has just been freshly 
formatted and rebuilt.
I am running Apache as my webserver.
I did clean installs of numarray 1.0 and matplotlib 0.60.2 from source, 
and they both installed cleanly and completely. The only config I did 
was in the matplotlib setup.py file, I changed the numerix setting to 
numarray instead of numeric.
Both packages test out just fine from the command-line python interface.
I am trying to use PHP to call a Python script, which will in turn 
render some images for display by the PHP web page. The python script 
runs just fine as a regular user; the plots come out to the proper 
directory just as they should. But simply calling
 from matplotlib.matlab import *
at the head of the script leads to errors when the script is called by 
PHP instead. Commenting out this import and any matplotlib function 
calls allows the PHP script to conclude cleanly (but of course without 
the desired result).
Here is a snippet from apache's logfile, from one try-through of the 
php script.
[Fri Jul 16 16:30:28 2004] [error] Numeric import failed... trying 
numarray.
[Fri Jul 16 16:30:28 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] Traceback (most recent call last):
[Fri Jul 16 16:30:30 2004] [error] File 
"/httpd/cgi-bin/Webplots/Devel/plotdata.py", line 13, in ?
[Fri Jul 16 16:30:30 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] from matplotlib.matlab import *
[Fri Jul 16 16:30:30 2004] [error] File 
"/usr/lib/python2.3/site-packages/matplotlib/matlab.py", line 143, in ?
[Fri Jul 16 16:30:30 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] from backends import 
new_figure_manager, error_msg, \\
[Fri Jul 16 16:30:30 2004] [error] File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/__init__.py", line 
26, in ?
[Fri Jul 16 16:30:30 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] from backend_gtkagg import 
error_msg, draw_if_interactive, show, new_figure_manager
[Fri Jul 16 16:30:30 2004] [error] File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py", 
line 12, in ?
[Fri Jul 16 16:30:30 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] from backend_gtk import gtk, 
FigureManagerGTK, FigureCanvasGTK,\\
[Fri Jul 16 16:30:30 2004] [error] File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py", 
line 21, in ?
[Fri Jul 16 16:30:30 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] import gtk
[Fri Jul 16 16:30:30 2004] [error] File 
"/usr/src/build/375621-i386/install/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", 
line 43, in ?
[Fri Jul 16 16:30:30 2004] [error] RuntimeError
[Fri Jul 16 16:30:30 2004] [error] :
[Fri Jul 16 16:30:30 2004] [error] could not open display
[Fri Jul 16 16:30:30 2004] [error]
[Fri Jul 16 16:30:30 2004] [error] Premature end of script headers: 
plotdata.py
I have no idea what that is all about.
I had a problem earlier with the ttf something something cache file that 
is generated on the first use by each user. Evidently, since Apache 
doesn't have a home directory, and doesn't have permissions to use 
/usr/share/matplotlib/ it was getting a permission denial when it tried 
to create that cache file. I changed the permissions of that directory 
temporarily to 777, ran the PHP script, and the whole thing got a little 
bit further before crapping out (as seen above).
Trying to run the script directly as a cgi execution results in 
identical errors. So the issue is not in PHP.
So If anyone can lead me toward a solution here, I would be much 
obliged. Also, if anyone can tell me a more elegant fix for the 
permissions issue above, that would be nice too. I don't like leaving 
777 permissions on system files like that.
This package looks like it could be a really great on-the-fly plot 
generator for web applications, if we can iron out all the config 
wrinkles. Thanks everyone for your time and patience on this big post. 
Good Luck!
 - Jonathan Hanson
 Department of Physics and Astronomy
 Louisiana State University
From: Darren D. <dd...@co...> - 2004年07月16日 19:05:28
Attachments: dd55.vcf
Hi Everyone,
I'm having trouble saving plot images with the *Agg backends. I've tried 
TkAgg, GTKAgg, WXAgg, and get the following error message (here for WXAgg):
Do not know how to handle extension *.jpg
14:48:54 Debug e:\Projects\wx2.4\src\msw\app.cpp(439): 
'UnregisterClass(canvas)' failed with error 0x00000584 (class still has 
open windows)
WX and GTK backends work. I'm using the precompiled 0.60.2 version of 
Matplotlib (congratulations on the new release), python 2.3.4, windows 
XP. I'm calling my program from a DOS prompt to get the error messages, 
working in non-interactive mode and trying to save the image using the 
save-button widget.
Any suggestions?
Thanks,
Darren
-- 
Darren S. Dale
dd...@co...
PGP public key available
From: Serge B. <se...@op...> - 2004年07月16日 13:06:00
Paul Barrett wrote:
>What version of matplotlib are you using? Versions earlier than 0.60.2 
>may not work.
Sorry, I should have mentionned that: it was the latest version, 0.60.2
>I just uploaded improved TrueType Font (TTF) support for PS last night, 
>so the version on CVS should fix this. Please give it a try and let me 
>know if you have any problems.
The CVS version works perfectly, thank you very much! ...and congratulations for fixing the problem before it even got reported :)
Serge
From: Paul B. <ba...@st...> - 2004年07月16日 12:31:57
Serge Barral wrote:
>I'm a new user of matlibplot, and have difficulties in making mathtext to work with the PS backend. Instead of the math symbols, the raw TeX expression is displayed. Mathtext works fine on the GUI backends and on raster images output, though.
>
>The following quote from matplotlib web page made suggests that mathtext should work for PS output:
>"mathtext now embeds the TrueType computer modern fonts into the PS file, so what you see on the screen should be what you get on paper"
>Did I misunderstood?
> 
>
What version of matplotlib are you using? Versions earlier than 0.60.2 
may not work.
I just uploaded improved TrueType Font (TTF) support for PS last night, 
so the version on CVS should fix this. Please give it a try and let me 
know if you have any problems.
>I am on debian unstable and initially tried Vittorio's packages. Thinking that this could be the problem, I resolved to install matplotlib from sources, but the result is the same.
>I did check that BUILD_FT2FONT=1 is set.
> 
>
 -- Paul
-- 
Paul Barrett, PhD Space Telescope Science Institute
Phone: 410-338-4475 ESS/Science Software Branch
FAX: 410-338-4767 Baltimore, MD 21218
From: Serge B. <se...@op...> - 2004年07月16日 08:37:05
I'm a new user of matlibplot, and have difficulties in making mathtext to work with the PS backend. Instead of the math symbols, the raw TeX expression is displayed. Mathtext works fine on the GUI backends and on raster images output, though.
The following quote from matplotlib web page made suggests that mathtext should work for PS output:
"mathtext now embeds the TrueType computer modern fonts into the PS file, so what you see on the screen should be what you get on paper"
Did I misunderstood?
I am on debian unstable and initially tried Vittorio's packages. Thinking that this could be the problem, I resolved to install matplotlib from sources, but the result is the same.
I did check that BUILD_FT2FONT=1 is set.
Thank you in advance for any help,
Serge

Showing 6 results of 6

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