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

Showing 11 results of 11

From: Jean-Baptiste C. <Jea...@de...> - 2004年01月30日 23:16:11
S=E6ll !
I am trying to plot very small number for the Y-axis on semilogy but they d=
o not appear at all unless one of the value is higher
Moreover the labels on the Y axis become 0 below 0.001
>> semilogy([1.0, 2.3, 3.3],[9.4e-05, 9.4e-05, 9.4e-05]) <-- does not =
work
[<matplotlib.lines.Line2D instance at 0x935255c>]
>> semilogy([1.0, 2.3, 3.3],[9.4e-04, 9.4e-05, 9.4e-05])	<--- work
[<matplotlib.lines.Line2D instance at 0x940e964>]
Should I use a specific "long" definition of my floating number ?
Takk
Jean-Baptiste
--=20
-----------------------------
Jea...@de...
Department of Statistics
deCODE genetics Sturlugata,8
570 2993 101 Reykjav=EDk
From: John H. <jdh...@ac...> - 2004年01月30日 21:37:37
I've spent the last couple of days refactoring the matplotlib
backends, fixing bugs and adding some functionality. Here's a
synopsis of what's new. I encourage everyone to try it out so
complaints and bugs can be handled before the major release.
** Note there are some API changes so please read about this below **
** Note, GD users, GD rendering is significantly improved in my
 opinion. However, some of new functionality requires a recent
 version of gd and a patch of the latest gdmodule, see below **
What's new in matplotlib 0.50e
 GD supports clipping and antialiased line drawing. The line object
 has a new 'antialiased' property, that if true, the backend will
 render the line antialiased if supported. **You will need to
 upgrade to gd-2.0.15 or later and gdmodule-0.51. You will also need
 to replace _gdmodule.c with the code as described at
 http://matplotlib.sourceforge.net/backends.html#GD.
wild and wonderful bar charts
 You can provide an optional argument 'bottom' to the bar command to
 determine where the bottom of each bar is, default 0 for all. This
 enables stacked bar plots and candelstick plots --
 examples/bar_stacked.py. Thanks to David Moore and John Gill for
 suggestions and code.
Bugfixes (by backend)
 * All : the yticks on the right hand side were placed incorrectly,
 now fixed
 * All : ticklabels now make a more intelligent choice about how
 many significant digits to display
 * GD : An int truncation bug was causing the dotted lines to
 disappear
 * GD and GTK : Fixed line width to scale with DPI
 * GD : Fixed small text layout bug
 * GD : Fixed the constant for GD which maps pixels per inch - this
 should give better agreement with other backends witht he
 relative sizes of objects
 * GTK : Dash spacing was not properly scaling with DPI
Figure backend refactored
 The figure functionality was split into a backend independent
 component Figure and a backend dependent component
 FigureCanvasBase. This completes the transition to a totally
 abstract figure interface and improves the ability the switch
 backends. See the file
 http://matplotlib.sourceforge.net/API_CHANGES that comes with the
 src distro for information on migrating applications to the new API.
 All the backend specific examples have been updated to the new API.
Enjoy,
John Hunter
From: John H. <jdh...@ac...> - 2004年01月30日 18:05:32
>>>>> "Nils" == Nils Wagner <nw...@me...> writes:
 Nils> ~/cvs/matplotlib/htdocs> /usr/bin/python process_docs.py
 Nils> Converting matplotlib.afm.html to template Converting
 Nils> matplotlib.artist.html to template Converting
 Nils> matplotlib.axes.html to template Converting
 Nils> matplotlib.axis.html to template Converting
 Nils> matplotlib.backend_bases.html to template Converting
 Nils> matplotlib.backends.backend_gd.html to template Traceback
 Nils> (most recent call last): File "process_docs.py", line 28, in
 Nils> ? s = file('../docs/' + fname).read() IOError: [Errno 2] No
 Nils> such file or directory:
 Nils> '../docs/matplotlib.backends.backend_gd.html'
Are you aware that the htdocs build the matplotlib web page, which can
be found at http://matplotlib.sourceforge.net. In other words, unless
you want to edit the web page docs, there is not much need to build
them yourself since they are available online.
If all you want is the pydoc documentation, this is online at
 http://matplotlib.sourceforge.net/matlab_commands.html and
 http://matplotlib.sourceforge.net/classdocs.html
If you really want to build the html docs yourself, from your error
message it looks like you do not have gd module properly installed.
Can you do this?
 >> import matplotlib
 >> matplotlib.use('GD')
 >> from matplotlib.matlab import *
If not, then GD is not installed properly and you need to follow the
install instructions at
http://matplotlib.sourceforge.net/backends.html#GD.
You will need to have all backends working before you can build the
htdocs.
One last word of warning, since you are building htdocs, you are using
CVS, right? CVS has undergone a lot of changes in the last 2 days,
particularly the GD backend, and if you have the latest CVS version,
GD won't run properly without a patched gdmodule. Stay tuned for
another post with all the required info for using the latest CVS.
JDH
From: Nils W. <nw...@me...> - 2004年01月30日 17:56:19
~/cvs/matplotlib/htdocs> /usr/bin/python process_docs.py
 Converting matplotlib.afm.html to template
 Converting matplotlib.artist.html to template
 Converting matplotlib.axes.html to template
 Converting matplotlib.axis.html to template
 Converting matplotlib.backend_bases.html to template
 Converting matplotlib.backends.backend_gd.html to template
Traceback (most recent call last):
 File "process_docs.py", line 28, in ?
 s = file('../docs/' + fname).read()
IOError: [Errno 2] No such file or directory:
'../docs/matplotlib.backends.backend_gd.html'
From: LUK S. <shu...@po...> - 2004年01月30日 16:14:43
John Hunter wrote:
>>>>>>"LUK" == LUK ShunTim <shu...@po...> writes:
> 
> 
> LUK> Yes. I did "python log_demo.py", got the gtk GUI and clicked
> LUK> on the "save" icon to produce the eps file. So it is as you
> LUK> said, it comes from the GUI backend. No warning when I did
> LUK> "python log_demo.py -dPS"
> 
> OK, now we at least know where the problem is. I don't get such an
> error message on my system (rhl9, pygtk-2.0.0). What platform are you
> on, and what versions of GTK and pygtk are you running?
> 
> JDH
> 
> 
> 
W2K, Enthought python 2.3, pygtk 2.0, gtk 2.0
Regards,
ST
From: John H. <jdh...@ac...> - 2004年01月30日 16:00:31
>>>>> "LUK" == LUK ShunTim <shu...@po...> writes:
 LUK> Yes. I did "python log_demo.py", got the gtk GUI and clicked
 LUK> on the "save" icon to produce the eps file. So it is as you
 LUK> said, it comes from the GUI backend. No warning when I did
 LUK> "python log_demo.py -dPS"
OK, now we at least know where the problem is. I don't get such an
error message on my system (rhl9, pygtk-2.0.0). What platform are you
on, and what versions of GTK and pygtk are you running?
JDH
From: LUK S. <shu...@po...> - 2004年01月30日 15:47:22
John Hunter wrote:
>>>>>>"LUK" == LUK ShunTim <shu...@po...> writes:
> 
> LUK> ** (log_demo.py:1264): WARNING **: Couldn't load font "Times
> LUK> 9.599609375" falling back to "Sans 9.599609375"
> 
> LUK> CVS.
> 
> Are you sure you are getting this message from the PS backend??? This
> looks more like a message coming from one of the GUI backends. I
> don't generate any error messages like this in matplotlib.
> 
> With a fresh cvs checkout:
> 
> hunter:~/tmp/matplotlib> grep -ri 'falling back to' .
> 
> turns up nothing.
> 
> JDH
> 
> 
> 
> 
Yes. I did "python log_demo.py", got the gtk GUI and clicked on the "save" icon 
to produce the eps file. So it is as you said, it comes from the GUI backend. No 
warning when I did "python log_demo.py -dPS"
Regards,
ST
--
From: John H. <jdh...@ac...> - 2004年01月30日 15:30:52
>>>>> "LUK" == LUK ShunTim <shu...@po...> writes:
 LUK> ** (log_demo.py:1264): WARNING **: Couldn't load font "Times
 LUK> 9.599609375" falling back to "Sans 9.599609375"
 LUK> CVS.
Are you sure you are getting this message from the PS backend??? This
looks more like a message coming from one of the GUI backends. I
don't generate any error messages like this in matplotlib.
With a fresh cvs checkout:
hunter:~/tmp/matplotlib> grep -ri 'falling back to' .
turns up nothing.
JDH
From: LUK S. <shu...@po...> - 2004年01月30日 14:54:15
John Hunter wrote:
>>>>>>"LUK" == LUK ShunTim <shu...@po...> writes:
> 
> 
> LUK> I have tex installed so I hope I can use quite a lot more
> LUK> fonts now. Is the path to the .afm files all that is needed?
> LUK> Do I have to set anything else, for example where to find the
> LUK> pfa/pfb files? I found that matplotlib spits out warnings
> LUK> like
> 
> All matplotlib needs is the *.afm files. It uses this to compute text
> lengths, etc, for layout. You'll just need to provide the right font
> names to the text commands, perhaps using a font dictionary as in
> examples/text_themes.py. Your postscript output device will still
> need to know about the fonts of course. Note that I use a custom font
> matching scheme in backend_ps and I certainly don't claim that it is
> ideal. So if you encounter strange behavior, let me know.
> 
> LUK> ** (log_demo.py:1264): WARNING **: Couldn't load font "Times
> LUK> 9.599609375" falling back to "Sans 9.599609375"
> 
> This doesn't look like a backend_ps error. Have you upgraded to
> matplotlib-0.42.2? I've reworked text handling in the backends so
> it's hard for me to compare what I've got now without knowing what
> version of matplotlib you're using.
> 
> JDH
> 
CVS.
ST
From: John H. <jdh...@ac...> - 2004年01月30日 14:08:07
>>>>> "LUK" == LUK ShunTim <shu...@po...> writes:
 LUK> I have tex installed so I hope I can use quite a lot more
 LUK> fonts now. Is the path to the .afm files all that is needed?
 LUK> Do I have to set anything else, for example where to find the
 LUK> pfa/pfb files? I found that matplotlib spits out warnings
 LUK> like
All matplotlib needs is the *.afm files. It uses this to compute text
lengths, etc, for layout. You'll just need to provide the right font
names to the text commands, perhaps using a font dictionary as in
examples/text_themes.py. Your postscript output device will still
need to know about the fonts of course. Note that I use a custom font
matching scheme in backend_ps and I certainly don't claim that it is
ideal. So if you encounter strange behavior, let me know.
 LUK> ** (log_demo.py:1264): WARNING **: Couldn't load font "Times
 LUK> 9.599609375" falling back to "Sans 9.599609375"
This doesn't look like a backend_ps error. Have you upgraded to
matplotlib-0.42.2? I've reworked text handling in the backends so
it's hard for me to compare what I've got now without knowing what
version of matplotlib you're using.
JDH
From: LUK S. <shu...@po...> - 2004年01月30日 13:57:57
John Hunter wrote:
>>>>>>"LUK" == LUK ShunTim <shu...@po...> writes:
> 
> 
> LUK> A slight glitch though. I think John has changed the AFMPATH
> LUK> environmental variable to MATPLOTLIBDATA (which is a more
> LUK> appropriate name) so people installing matplotlib in
> LUK> non-default places will have to set it instead.
> 
> ps backend is setup to use both, the idea that you may have some AFM
> files independent of matplotlib, and some that ship with matplotlib.
> The MATPLOTLIBDATA is indeed for people installing in nonstandard
> places. But if AFMPATH is not working for you, I need to know since
> this is a bug.
> 
> Thanks!
> John Hunter
> 
I think that's an oversight of mine. I had AFMPATH set to point to the directory 
which holds the afm, xpm files etc before I upgrade. After upgrading I got the 
error described above and I found out that I have to set MATPLOTLIBDATA. I did 
not realize that AFMPATH is *still* used.
I have tex installed so I hope I can use quite a lot more fonts now. Is the path 
to the .afm files all that is needed? Do I have to set anything else, for 
example where to find the pfa/pfb files? I found that matplotlib spits out 
warnings like
** (log_demo.py:1264): WARNING **: Couldn't load font "Times 9.599609375"
falling back to "Sans 9.599609375"
Regards,
ST
1 message has been excluded from this view by a project administrator.

Showing 11 results of 11

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