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





Showing results of 292

<< < 1 2 3 4 5 .. 12 > >> (Page 3 of 12)
From: John H. <jdh...@ac...> - 2005年10月26日 21:12:27
>>>>> "James" == James Boyle <bo...@ll...> writes:
 James> When I run the example for two scales (two_scales.py), the
 James> secondary axis - on the right- has ticks for both
 James> scales. The primary - on left - has the expected one set of
 James> ticks. I did modify the example code as shown
 James> below. Instead of calling the twinx function of pylab I
 James> explicitly took the code from pylab.py. this was because I
 James> wanted to see exactly what was being done with an intent to
 James> modify it slightly. In any case it should be completely
 James> equivalent to the example. When I did run the example
 James> unchanged it gave the same result.
 James> Is this a bug or something I am missing something ?
Looks like a bug -- I see the same thing with twinx. Could you file
this one of the sf site? I took a look through the axis code but
couldn't find the culprit. I'm CC Baptiste who wrote the code --
maybe he has some insight.
Thanks
 James> Running matplotlib 0.84 on OS X 10.3.9
 James> import pylab import Numeric N = Numeric PL = pylab
 James> ax1 = PL.subplot(111) t = N.arange(0.01, 10.0, 0.01) s1 =
 James> N.exp(t) PL.plot(t, s1, 'b-') PL.xlabel('time (s)')
 James> PL.ylabel('exp') # turn off the 2nd axes rectangle with
 James> frameon kwarg #ax2 = PL.twinx() ax = PL.gca() ax2 =
 James> PL.gcf().add_axes(ax.get_position(), sharex=ax,
 James> frameon=False) ax2.yaxis.tick_right()
 James> ax2.yaxis.set_label_position('right')
 James> s2 = N.sin(2*N.pi*t) PL.plot(t, s2, 'r.') PL.ylabel('sin')
 James> ax2.yaxis.tick_right() show()
 James> -------------------------------------------------------
 James> This SF.Net email is sponsored by: Power Architecture
 James> Resource Center: Free content, downloads, discussions, and
 James> more. http://solutions.newsforge.com/ibmarch.tmpl
 James> _______________________________________________
 James> Matplotlib-users mailing list
 James> Mat...@li...
 James> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: John H. <jdh...@ac...> - 2005年10月26日 21:04:09
>>>>> "Humufr" == Humufr <hu...@ya...> writes:
 Humufr> Hello, I would like to resize a matplotlib window from a
 Humufr> command in ipython. I don't want to use the mouse to do
 Humufr> this (for different reasons). Do you know if it's possible
 Humufr> to do this?
This is currently a work in progress. There should be support for
this in matplotlib CVS. Eg you can call
 manager.set_canvas_size(width, height)
where manager is a backend "FigureManager" instance.
You can access this from pylab with 
manager = get_current_fig_manager()
The API for this is still under discussion and subject to change, and
only implemented for GTK* currently, I believe.
JDH
From: John H. <jdh...@ac...> - 2005年10月26日 21:01:59
>>>>> "Phil" == philopensource@hotmail com <phi...@ho...> writes:
 Phil> Hi John and list, Sorry to take your time.
 Phil> from matplotlib.backends.backend_gtkagg import
 Phil> FigureCanvasGTKAgg as FigureCanvas from
 Phil> matplotlib.backends.backend_gtkagg import
 Phil> NavigationToolbar2GTKAgg as NavigationToolbar
If you can submit a *free standing* script that exposes your problem,
I'll take a look.
JDH
From: Chris F. <fon...@gm...> - 2005年10月26日 15:58:43
>> http://flickr.com/photos/84201647@N00/56276637/
>> Anyone else have this problem? Is there a solution?
> Maybe your plot counter isn't incrementing?
> (Always looking for the obvious; sorry.)
Unfortunately, that is probably not the issue. I increment the counter
every time a new figure() is called:
 # If new plot, increment counter
 if new:
 self.plot_counter +=3D 1
 figure(self.plot_counter,figsize=3D(10,6))
I have used print statements in this block to guarantee the count.
C.
--
Chris Fonnesbeck
Atlanta, GA
From: Ken M. <mc...@ii...> - 2005年10月26日 15:29:12
Ryan,
Could you please test and see if the segfaults continue to occur when the 
WxAgg accelerator has been disabled? Also, short script that reproduces this 
problem would be appreciated. Thanks.
Ken
From: Ken M. <mc...@ii...> - 2005年10月26日 15:13:53
Philippe,
I believe that Figure.delaxes() does what you want:
	# create a subplot and add it to a figure
	ax = Subplot(fig,111)
	fig.add_subplot(ax)
	# remove the subplot
	fig.delaxes(ax)
	# add it to another figure
	anotherFigure.add_subplot(ax)
Ken
From: Alan G I. <ai...@am...> - 2005年10月26日 14:48:25
On 2005年10月26日, Chris Fonnesbeck apparently wrote: 
> http://flickr.com/photos/84201647@N00/56276637/ 
> Anyone else have this problem? Is there a solution? 
Maybe your plot counter isn't incrementing?
(Always looking for the obvious; sorry.)
Cheers,
Alan Isaac
From: Chris F. <fon...@gm...> - 2005年10月26日 14:26:53
I use Matplotlib to plot output from my Bayesian simulation package,
PyMC. I essentially generate a series of 2-pane plots with a line plot
and a histogram on each. Between plots, the figure() function is
called:
figure(self.plot_counter,figsize=3D(10,6))
which should generate a new canvas for plotting. Every so often,
however, this does not happen, resulting in superimposed plots:
http://flickr.com/photos/84201647@N00/56276637/
Anyone else have this problem? Is there a solution?
Thanks,
--
Chris Fonnesbeck
Atlanta, GA
From: Darren D. <dd...@co...> - 2005年10月26日 13:31:38
On Tuesday 25 October 2005 11:46 pm, Ryan Krauss wrote:
> ryan@ubuntu:~/datafit/closed_loop_modeling_report/figs$ gs -v
> AFPL Ghostscript 8.14 (2004年02月20日)
> Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
>
> The bounding box goes tightly around the figure but does not include
> the labels. Is there a way to add a pad around the figure or some
> other way to solve this problem?
I haven't seen this problem before, would you post a minimal example?
Darren
From: <phi...@ho...> - 2005年10月26日 10:04:07
I add another question linked to the previouns one.
as we sepcify two times the link between figure and subplot (axes) when 
we make subplot manually:
ax = Subplot(fig,111)
fig.add_subplot(ax) 
Is it possible after that to break the link between a figure and a 
subplot and to add the subplot to another figure?
Thanks a lot for any answer,
Philippe Collet
Hi John and list,
Sorry to take your time.
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as 
FigureCanvas
from matplotlib.backends.backend_gtkagg import NavigationToolbar2GTKAgg 
as NavigationToolbar
when i do:
 |fig = Figure(figsize=(5,4), dpi=100)|||
 |ax = fig.add_subplot(111) # 1|
 |t = arange(0.0,3.0,0.01)|
 |s = sin(2*pi*t)|
 |ax.plot(t,s)|||||
 |canvas = FigureCanvas(fig)|
 |vbox.pack_start(canvas)|
 |toolbar = NavigationToolbar(canvas, win)|
 |vbox.pack_start(toolbar, False, False)
 |
|I can zoom on the figure and it is redrawn.
|My problem is i need to create a subplot instance myself:
 |fig = Figure(figsize=(5,4), dpi=100)
 ax = Subplot(fig,111) || # 1||
 t = arange(0.0,3.0,0.01)
 s = sin(2*pi*t)
 ax.plot(t,s)
 fig.add_subplot(ax) ||# 2 -> To display the hand
 subplot in the figure.|
 |canvas = FigureCanvas(fig)
 vbox.pack_start(canvas)
 toolbar = NavigationToolbar(canvas, win)
 vbox.pack_start(toolbar, False, False)|
The application is crashing. GTK seems to fail displaying the canvas.
Is it a bug or am i doing something wrong?
Thanks a lot for the answer,
Regards,
Philippe Collet
From: Ryan K. <rya...@gm...> - 2005年10月26日 03:47:10
First, thanks to Darren and John and anyone else who helped with the
usetex functionality. I am really impressed.
I searched the list for bounding box and saw that there are a lot of
posts on this subject. But didn't see anything the specifically deals
with my problem.
I am using:
ryan@ubuntu:~/datafit/closed_loop_modeling_report/figs$ gs -v
AFPL Ghostscript 8.14 (2004年02月20日)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
The bounding box goes tightly around the figure but does not include
the labels. Is there a way to add a pad around the figure or some
other way to solve this problem?
Thanks,
Ryan
From: Yves M. <ym...@gr...> - 2005年10月25日 18:59:18
Hi All,
This is just a RFC for a project that's been in the back of my mind for a few
years now : integration of a data visualization system with a CMS. In general
terms, I think it would be nice to have the kind of functionnality reserved to
desktop backends TTW :). Of course, the stateless nature of HTTP makes some
things hard or impossible to achieve efficiently, but with "console type" web
applications sprouting all over the place now with the many AJAX frameworks out
there, I believe the time is ripe for at least a first try.
Over the last few months, I have become acquainted with Plone 2 as well as a
variety of Python utilities (including matplotlib!). I've recently been playing
with Mochikit (TurboGear's AJAX provider) within a Plone 2 environment. With
the Zope/Plone community moving towards a Zope 3 base that as far as I can tell
is closer to the rest of the Python world than Zope 2 is, I feel confident that
Zope will be a great system to incorporate a data visualization system into. 
Does anyone have links/pointers to issues related to such an integration scheme
in general ? Is a broader integration of SciPy with a CMS like Zope unrealistic
? I'm approaching the problem from a layman's perspective that has a bit of
computer literacy. Maybe I could illustrate what I'm trying to achieve by an
example.
I have some sensors that measure a bunch of parameters (water quality, air
pollution ...). There is a bunch of locations where those sensors are either
deployed in situ or are used sporadically (e.g. a handheld instrument). I want
to store sensor descriptions in a CMS together with a host of related info
(calibration data, maintenance history) and be able to purpose a sensor's
representation in some standard form (e.g. SensorML). I want to store
measurement stations also as CMS objects (lat/lon, picture of the station,
instruments used ...). I'm currently storing Measurements as CMS objects as
well (contained in MeasurementStation objects), but that is temporary :
individual measurements will be stored in a standard relational DB.
Users can view measurements as tables and as graphics. What I'd like to do
eventually is to provide a full GUI for users to control their plot layout and
that's where the integration of a full-fledged data visualization system comes
into play. An easy solution would be to provide an invisible data download to
some temp directory so that users could use TkAgg on their desktops, but I'd
really like to avoid this "applet-style" solution and try and find an AJAX
solution : query the server for bits of data as needed.
Is anyone interested by this topic ? Sorry for potentially polluting this list,
but I couldn't find a better place ...
Yves Moisan
From: Ryan K. <rya...@gm...> - 2005年10月25日 17:54:42
I just downloaded the latest cvs snapshot and did a sudo python
setup.py install. This process finished cleanly, but if I use the
WXAgg backend, pylab.show() causes a seg fault. How do I get more
information to fix this problem? The TkAgg backend seems to work
fine. I am running ubuntu Breezy Linux.
Ryan
From: Jeff W. <js...@fa...> - 2005年10月25日 16:49:33
James Boyle wrote:
> I installed basemap 0.7 and 0.7.2 both gave the same error across 
> projections that worked in basemap 0.6.
> I am running matplotlib 0.84, basemap 0.72, OS X 10.3.9, python 
> 2.3. Does basemap 0.7.2 require 2.4 ?
>
> --Jim
Jim: The format of the data files has changed - install the 
basemap-data package and all will be well.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Dirk J. <dir...@bi...> - 2005年10月25日 16:40:40
Hi,
I have a countourf() plot, overlayed by countour().
Now I want to plot additional points (here: errors in data) like scatter 
over the existing figure.
How to do? Any ideas?
Dirk Junghanns
From: James B. <bo...@ll...> - 2005年10月25日 16:26:57
I installed basemap 0.7 and 0.7.2 both gave the same error across 
projections that worked in basemap 0.6.
I am running matplotlib 0.84, basemap 0.72, OS X 10.3.9, python 2.3. 
Does basemap 0.7.2 require 2.4 ?
--Jim
The error:
In [8]: m = 
Basemap(llcrnrlon=-119,llcrnrlat=22,urcrnrlon= 
-64,urcrnrlat=49,projection='lcc',lat_1=33,lat_2=45,lon_0=-95)
------------------------------------------------------------------------ 
---
exceptions.IndexError Traceback (most 
recent call last)
/Volumes/IBM1/python/matplotlibWork/<console>
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages/matplotlib/toolkits/basemap/basemap.py in __init__(self, 
llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat, projection, resolution, 
area_thresh, rsphere, lat_ts, lat_1, lat_2, lat_0, lon_0, lon_1, lon_2, 
suppress_ticks, ax)
 389 linesplit = line.split()
 390 if line.startswith('>'):
--> 391 west,east,south,north = 
float(linesplit[7]),float(linesplit[8]),float(linesplit[9]),float(linesp 
lit[10])
 392 useit = self.latmax>=south and 
self.latmin<=north
 393 if useit: cntrysegind.append(len(cntrylons))
IndexError: list index out of range 
 
Dear All,
I have hacked a bit at texmanager.py and backend_ps.py in order to
generate "superior" text output using LaTeX.
It involves "including" a user specific "low level font command" input
file useing some "new" rcParams and the savefig command with the PS
backend in you main "pylab" script:
...
rcParams['font.latex.inputfile']=3D'True'
rcParams['font.latex.inputfile.filename']=3D'mypresentation.llfc'
savefig('myeps.eps')
...
The "low level font command" input file has the following included:
\fontencoding{T1}		% T1 - Latin 1, etc.
\fontfamily{phv}		% cmr - Computer Modern Roman, ptm -
Times-Roman, phv - Helvetica, etc.
\fontseries{m}		% m - Medium, b - Bold, bc - Bold Condensed, bx
- Bold Expanded
\fontshape{n}		% n - Upright (Normal), it - Italic, sl -
Slanted,
				% sc - Small Caps, ui - Upright Italics,
ol - Outline
\selectfont			% Above font changes will now become
effective
or for those who know all the abreviations by hart:
=20
\usefont{T1}{phv}{m}{n}
Attached are examples of three "low level font command" files for
different "application", e.g. a Thesis, a Presentation or an Article...
In texmanager.py the "TexManager.get_tex_command" needs to be changed
to:
...
 def get_tex_command(self, tex, fname):
 fh =3D file(fname, 'w')
 if rcParams['text.tex.engine'] =3D=3D 'latex':
 print >>fh, r"""\documentclass{article}
\usepackage{%s}
\setlength{\paperwidth}{72in}
\setlength{\paperheight}{72in}
\pagestyle{empty}
\begin{document}""" % (rcParams['font.latex.package'])
 if rcParams['font.latex.inputfile']:
 inputfile =3D rcParams['font.latex.inputfile.filename']
 if os.path.exists(inputfile):
 print >>fh, r"\input{%s}" % inputfile
 print >>fh, r"""%s
\end{document}""" % tex
 =20
 fh.close()
 =20
 command =3D 'latex -interaction=3Dnonstopmode "%s"'%fname
 else:
 s =3D r"""\def\frac#1#2{ {#1 \over #2} }
\nopagenumbers
\hsize=3D72in
\vsize=3D72in
%s
\bye
""" % tex
 fh.write(s)
 fh.close()
 command =3D 'tex "%s"'%fname
 return command
...
(or see attached)
And in backend_ps.py, from line 1059:
...
 if rcParams['text.usetex']:
 if rcParams['text.tex.engine'] =3D=3D 'latex':=20
 fontpackage =3D rcParams['font.latex.package']
 else:=20
 fontpackage =3D 'type1cm'
 pw, ph =3D defaultPaperSize
 if width>pw-2 or height>ph-2: pw,ph =3D
_get_papersize(width,height)
 print >>latexh, r"""\documentclass{scrartcl}
\usepackage{%s}
\usepackage{psfrag}
\usepackage[dvips]{graphicx}
\usepackage{color}
\pagestyle{empty}
\setlength{\paperheight}{%fin}
\setlength{\paperwidth}{%fin}
\setlength{\textwidth}{%fin}
\setlength{\textheight}{%fin}
\special{papersize=3D%fin,%fin}
\begin{document}
\begin{figure}[th!]""" % (fontpackage, pw, ph, pw-2, ph-2, pw, ph)
 if rcParams['font.latex.inputfile']:
 usefontfile =3D =
rcParams['font.latex.inputfile.filename']
 if os.path.exists(usefontfile):
 print >>latexh, r"\input{%s}" % usefontfile
 print >>latexh, r"""%s
\begin{center}
\includegraphics{%s}
\end{center}
\end{figure}
\end{document}
"""% ('\n'.join(renderer.psfrag), epsfile)
 latexh.close()
...
(or see attached)
Hope someone (else) finds it usefull.
Vriendelik die uwe,
 Peter-Jan Randewijk
 Senior Lektor - Drywingselektronika & Elektriese Aandrywing =20
=20
-oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-=20
 Departement E&E. Ingenieurswese
 Universiteit Stellenbosch=20
 Privaatsak X1=20
 Matieland, 7603
 Suid-Afrika
 Tel: +27 (0) 21 808 4457 (w)=20
 Faks: +27 (0) 21 808 3951 (w)=20
 Tel: +27 (0) 21 883 8592 (h)=20
 Sel: +27 (0) 83 556 5809 (h)
-oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-=20
From: Randewijk P-J <pjr...@su...> - 2005年10月25日 07:44:38
For other newbies like myself,
Although flushing the ~/.matplotlibrc/tex.cache is an importend thing to
remember, which I did, but forgot to mention (see PS at the bottom), the
reason why:
...
font packagesfont.latex.package : helvet
...
Did not give my the desired results (for inclusion into a Beamer LaTeX
Document Class presentation, was that:
 "... By default, LaTeX selects a Roman typeface as the document
font...", The LaTeX Companion, Second Edition, p 373
The following line needs to be "placed" in the preamble of the "LaTeX
document" created by texmanager.py and backend_ps.py:
\renewcommand\familydefault{\sfdefault}
Regards,
Peter-Jan Randewijk
PS: A rcParam['tex.cache.flush']=3D'True' option would be an usefull
adition to mpl
-----Original Message-----
From: Samuel M. Smith [mailto:sm...@sa...]=20
Sent: 24 October 2005 18:34
To: Randewijk P-J <pjr...@su...>
Cc: Samuel M. Smith; mat...@li...
Subject: Re: [Matplotlib-users] font.latex.package in matplotlibrc has
no effect using MiKTeX
If you use the exact same text then it will not change the font =20
because matplotlib caches the tex redering of text by the name of the =20
text. You have to delete
the matplotlib tex cache in ~/.matplotlibrc/tex.cache. That will =20
force it to regenerate the text using the new font.
For example if your plot has a label "Meters" then matplotlib will =20
use the cached rendering of "Meters". It isn't smart enough to notice =20
that the cached version uses a different font and therefore must be =20
re-rendered.
On 24 Oct, 2005, at 10:05, Randewijk P-J, Mnr <pjr...@su...> =20
wrote:
> Dear All MiKTeX/win32 users,
>
> With the following lines in my matplotlibrc file:
>
> ...
> text.usetex : True
> text.tex.engine : latex
> ...
>
> I can generating beautiful LaTeX output for my text labels, I now have
> difficulty changing the font from the default, "Computer Times
> Roman" to
> anything else..
>
> The following line in my matplotlibrc file:
>
> ...
> font packagesfont.latex.package : helvet
> ...
>
> Have no effect...
>
> Changing "helvet" to:
>
> times, txfonts, pxfont, arial, etc. have also no effect although these
> packages are installed...
>
> Even hardcoding, "\usepackage{helvet}" into backend_ps.py, has no
> effect:
>
> ...
> if rcParams['text.usetex']:
> if rcParams['text.tex.engine'] =3D=3D 'latex':
> fontpackage =3D rcParams['font.latex.package']
> else:
> fontpackage =3D 'type1cm'
> pw, ph =3D defaultPaperSize
> if width>pw-2 or height>ph-2: pw,ph =3D
> _get_papersize(width,height)
> print >>latexh, r"""\documentclass{scrartcl}=20
> \usepackage{%s} \usepackage{helvet}
> \usepackage{psfrag}
> ...
>
> Any ideas...?
>
> Vriendelik die uwe,
>
> Peter-Jan Randewijk
> Senior Lektor - Drywingselektronika & Elektriese Aandrywing
>
> -oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-
> Departement E&E. Ingenieurswese
> Universiteit Stellenbosch
> Privaatsak X1
> Matieland, 7603
> Suid-Afrika
> Tel: +27 (0) 21 808 4457 (w)
> Faks: +27 (0) 21 808 3951 (w)
> Tel: +27 (0) 21 883 8592 (h)
> Sel: +27 (0) 83 556 5809 (h)
> -oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course Free=20
> Certification Exam for All Training Attendees Through End of 2005=20
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Matplotlib-users mailing list Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is giving
up what we want most for what we want at the moment"
**********************************************************************
From: John H. <jdh...@ac...> - 2005年10月25日 02:08:43
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
 Eric> I don't understand this. Why can't the mpl license simply
 Eric> say that it applies to all components that do not cite other
 Eric> licenses, and then leave the reference to the original
 Eric> license in any code such as GTS which has another license?
 Eric> This is not a plea for or against GTS or any other
 Eric> particular package, but rather an expression of puzzlement
 Eric> and frustration that we seem to be finding free software
 Eric> licenses limiting instead of liberating.
In my understanding, code which imports GPL'd code is obligated to
abide by the GPL restrictions itself if you want to distribute it,
specifically the copyleft part that says derived works must be open
source and distributed under the GPL. So if mpl imports a GPL module,
mpl, then any code which is for distribution that imports matplotlib
is required to be distributed under the terms of the GPL. This is
clearly unacceptable to someone who wants to distribute products that
use mpl under a proprietary license. The LGPL was introduced to solve
this problem, and it basically says that you can import it and use it
but if you change the LGPL library the library changes must be
distributed under the LGPL. I don't find it particularly
objectionable to use code which has an LGPL license, but given an
alternative, would rather have a BSD type license which is
"unencumbered".
Basically, the GPL is not particularly liberating, since it makes
strong statements about what you can do with code that uses GPL code.
JDH
From: John H. <jdh...@ac...> - 2005年10月25日 02:01:07
>>>>> "Miles" == Miles Lubin <mi...@lu...> writes:
 Miles> Hi, I'm trying to make a histogram. matplotlib makes it
 Miles> perfectly, except for the numbering on the y axis, which it
 Miles> changes by a factor of e4, example:
 Miles> http://junker.org/~mlubin/hist.jpg. How can I make it use
 Miles> standard notation instead of scientific notation?
You can change the tick formatter by setting the yaxis "major tick
formatter". See the help for the matplotlib ticker module in the
online class docs, the chapter of the User's Guide on tick locators
and formatters, and the examples major_minor_demo*.py. In particular,
you will probably want a FormatStrFormatter
 http://matplotlib.sf.net/matplotlib.ticker.html#FormatStrFormatter
JDH
From: Eric F. <ef...@ha...> - 2005年10月24日 22:54:36
Jim,
I think I see what you mean, but I haven't had time to look into it 
carefully. I'll try to get to it this week.
Eric
James Boyle wrote:
> I set the matplotlibrc tick.direction to out.
> The ticks on the top x-axis and left y-axis appear to begin on the 
> inside edge of the frame and thus appear shorter than the other two 
> sides which seem to begin on the outside edge of the plot frame.
> The minor ticks are almost obscured.
> I am using the default settings for all else in the matplotlibrc.
> Running matplotlib 0.84, OS X 10.3.9
> 
> This in/out choice is a new feature and perhaps this is a bug.
> 
> --Jim
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Samuel M. S. <sm...@sa...> - 2005年10月24日 16:33:53
If you use the exact same text then it will not change the font 
because matplotlib caches the tex redering of text by the name of the 
text. You have to delete
the matplotlib tex cache in ~/.matplotlibrc/tex.cache. That will 
force it to regenerate the text using the new font.
For example if your plot has a label "Meters" then matplotlib will 
use the cached rendering of "Meters". It isn't smart enough to notice 
that the cached version uses a different font and therefore must be 
re-rendered.
On 24 Oct, 2005, at 10:05, Randewijk P-J, Mnr <pjr...@su...> 
wrote:
> Dear All MiKTeX/win32 users,
>
> With the following lines in my matplotlibrc file:
>
> ...
> text.usetex : True
> text.tex.engine : latex
> ...
>
> I can generating beautiful LaTeX output for my text labels, I now have
> difficulty changing the font from the default, "Computer Times 
> Roman" to
> anything else..
>
> The following line in my matplotlibrc file:
>
> ...
> font packagesfont.latex.package : helvet
> ...
>
> Have no effect...
>
> Changing "helvet" to:
>
> times, txfonts, pxfont, arial, etc. have also no effect although these
> packages are installed...
>
> Even hardcoding, "\usepackage{helvet}" into backend_ps.py, has no
> effect:
>
> ...
> if rcParams['text.usetex']:
> if rcParams['text.tex.engine'] == 'latex':
> fontpackage = rcParams['font.latex.package']
> else:
> fontpackage = 'type1cm'
> pw, ph = defaultPaperSize
> if width>pw-2 or height>ph-2: pw,ph =
> _get_papersize(width,height)
> print >>latexh, r"""\documentclass{scrartcl}
> \usepackage{%s}
> \usepackage{helvet}
> \usepackage{psfrag}
> ...
>
> Any ideas...?
>
> Vriendelik die uwe,
>
> Peter-Jan Randewijk
> Senior Lektor - Drywingselektronika & Elektriese Aandrywing
>
> -oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-
> Departement E&E. Ingenieurswese
> Universiteit Stellenbosch
> Privaatsak X1
> Matieland, 7603
> Suid-Afrika
> Tel: +27 (0) 21 808 4457 (w)
> Faks: +27 (0) 21 808 3951 (w)
> Tel: +27 (0) 21 883 8592 (h)
> Sel: +27 (0) 83 556 5809 (h)
> -oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
From: Randewijk P-J, M. <pjr...@su...> - 2005年10月24日 16:05:38
Dear All MiKTeX/win32 users,
With the following lines in my matplotlibrc file:
...
text.usetex : 	True =20
text.tex.engine :	latex
...
I can generating beautiful LaTeX output for my text labels, I now have
difficulty changing the font from the default, "Computer Times Roman" to
anything else..
The following line in my matplotlibrc file:
...
font packagesfont.latex.package :	helvet=20
...
Have no effect...
Changing "helvet" to:
times, txfonts, pxfont, arial, etc. have also no effect although these
packages are installed...
Even hardcoding, "\usepackage{helvet}" into backend_ps.py, has no
effect:
...
 if rcParams['text.usetex']:
 if rcParams['text.tex.engine'] =3D=3D 'latex':=20
 fontpackage =3D rcParams['font.latex.package']
 else:=20
 fontpackage =3D 'type1cm'
 pw, ph =3D defaultPaperSize
 if width>pw-2 or height>ph-2: pw,ph =3D
_get_papersize(width,height)
 print >>latexh, r"""\documentclass{scrartcl}
\usepackage{%s}
\usepackage{helvet}
\usepackage{psfrag}
...
Any ideas...?
Vriendelik die uwe,
 Peter-Jan Randewijk
 Senior Lektor - Drywingselektronika & Elektriese Aandrywing =20
=20
-oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-=20
 Departement E&E. Ingenieurswese
 Universiteit Stellenbosch=20
 Privaatsak X1=20
 Matieland, 7603
 Suid-Afrika
 Tel: +27 (0) 21 808 4457 (w)=20
 Faks: +27 (0) 21 808 3951 (w)=20
 Tel: +27 (0) 21 883 8592 (h)=20
 Sel: +27 (0) 83 556 5809 (h)
-oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-=20
From: Miles L. <mi...@lu...> - 2005年10月23日 15:14:57
Hi,
I'm trying to make a histogram. matplotlib makes it perfectly, except 
for the numbering on the y axis, which it changes by a factor of e4, 
example: http://junker.org/~mlubin/hist.jpg. How can I make it use 
standard notation instead of scientific notation?
Thanks,
Miles
1 message has been excluded from this view by a project administrator.

Showing results of 292

<< < 1 2 3 4 5 .. 12 > >> (Page 3 of 12)
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 によって変換されたページ (->オリジナル) /