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





Showing 16 results of 16

From: Attila K. <at...@gm...> - 2011年02月07日 23:30:20
> 
> Can you get us a gdb backtrace?
> 
> Type "gdb python" at the prompt, then at the gdb prompt, type "r 
> /usr/bin/ipython -pylab". After it segfaults, type "bt" to get a 
> backtrace, and send the output to this list.
> 
> Mike
> 
> On 10/01/2010 07:04 AM, Eric Emsellem wrote:
> > Hi
> >
> > I just upgraded to opensuse 11.3.
> >
> > And I get now:
> >
> > ipython -pylab:
> >
> > matplotlib version 1.0.0
> > verbose.level helpful
> > platform is linux2
> > *Segmentation fault*
> >
> >
> > Any clue?
> >
> > I am using IPython 0.10, Python 2.6.5
> >
> > Eric
> >
> >
> > 
Hello,
here is one:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff0911651 in init_path () from
/usr/lib64/python2.6/site-packages/matplotlib/_path.so
#2 0x00007ffff7b352c6 in _PyImport_LoadDynamicModule () from
/usr/lib64/libpython2.6.so.1.0
#3 0x00007ffff7b344e1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#4 0x00007ffff7b3475a in ?? () from /usr/lib64/libpython2.6.so.1.0
#5 0x00007ffff7b34bf1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#6 0x00007ffff7b351d4 in PyImport_ImportModuleLevel () from
/usr/lib64/libpython2.6.so.1.0
#7 0x00007ffff7b1f81b in ?? () from /usr/lib64/libpython2.6.so.1.0
#8 0x00007ffff7ae7cb2 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#9 0x00007ffff7b1fd26 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#10 0x00007ffff7b21b1e in PyEval_EvalFrameEx () from /usr/lib64
/libpython2.6.so.1.0
#11 0x00007ffff7b26431 in PyEval_EvalCodeEx () from /usr/lib64
/libpython2.6.so.1.0
#12 0x00007ffff7b1fa22 in PyEval_EvalCode () from /usr/lib64/libpython2.6.so.1.0
#13 0x00007ffff7b33145 in PyImport_ExecCodeModuleEx () from
/usr/lib64/libpython2.6.so.1.0
#14 0x00007ffff7b33384 in ?? () from /usr/lib64/libpython2.6.so.1.0
#15 0x00007ffff7b344e1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#16 0x00007ffff7b3475a in ?? () from /usr/lib64/libpython2.6.so.1.0
#17 0x00007ffff7b34b35 in ?? () from /usr/lib64/libpython2.6.so.1.0
#18 0x00007ffff7b351d4 in PyImport_ImportModuleLevel () from
/usr/lib64/libpython2.6.so.1.0
#19 0x00007ffff7b1f81b in ?? () from /usr/lib64/libpython2.6.so.1.0
#20 0x00007ffff7ae7cb2 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#21 0x00007ffff7b1fd26 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#22 0x00007ffff7b21b1e in PyEval_EvalFrameEx () from /usr/lib64
/libpython2.6.so.1.0
#23 0x00007ffff7b26431 in PyEval_EvalCodeEx () from /usr/lib64
/libpython2.6.so.1.0
#24 0x00007ffff7b1fa22 in PyEval_EvalCode () from /usr/lib64/libpython2.6.so.1.0
#25 0x00007ffff7b33145 in PyImport_ExecCodeModuleEx () from
/usr/lib64/libpython2.6.so.1.0
#26 0x00007ffff7b33384 in ?? () from /usr/lib64/libpython2.6.so.1.0
#27 0x00007ffff7b344e1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#28 0x00007ffff7b33c4b in ?? () from /usr/lib64/libpython2.6.so.1.0
#29 0x00007ffff7b34c5a in ?? () from /usr/lib64/libpython2.6.so.1.0
#30 0x00007ffff7b351d4 in PyImport_ImportModuleLevel () from
/usr/lib64/libpython2.6.so.1.0
#31 0x00007ffff7b1f81b in ?? () from /usr/lib64/libpython2.6.so.1.0
#32 0x00007ffff7ae7cb2 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#33 0x00007ffff7b1fd26 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#34 0x00007ffff7b21b1e in PyEval_EvalFrameEx () from /usr/lib64
/libpython2.6.so.1.0
#35 0x00007ffff7b26431 in PyEval_EvalCodeEx () from /usr/lib64
/libpython2.6.so.1.0
#36 0x00007ffff7b1fa22 in PyEval_EvalCode () from /usr/lib64/libpython2.6.so.1.0
#37 0x00007ffff7b33145 in PyImport_ExecCodeModuleEx () from
/usr/lib64/libpython2.6.so.1.0
#38 0x00007ffff7b33384 in ?? () from /usr/lib64/libpython2.6.so.1.0
#39 0x00007ffff7b344e1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#40 0x00007ffff7b33c4b in ?? () from /usr/lib64/libpython2.6.so.1.0
#41 0x00007ffff7b34c5a in ?? () from /usr/lib64/libpython2.6.so.1.0
#42 0x00007ffff7b351d4 in PyImport_ImportModuleLevel () from
/usr/lib64/libpython2.6.so.1.0
#43 0x00007ffff7b1f81b in ?? () from /usr/lib64/libpython2.6.so.1.0
#44 0x00007ffff7ae7cb2 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#45 0x00007ffff7b1fd26 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#46 0x00007ffff7b21b1e in PyEval_EvalFrameEx () from /usr/lib64
/libpython2.6.so.1.0
#47 0x00007ffff7b26431 in PyEval_EvalCodeEx () from /usr/lib64
/libpython2.6.so.1.0
#48 0x00007ffff7b1fa22 in PyEval_EvalCode () from /usr/lib64/libpython2.6.so.1.0
#49 0x00007ffff7b33145 in PyImport_ExecCodeModuleEx () from
/usr/lib64/libpython2.6.so.1.0
#50 0x00007ffff7b33384 in ?? () from /usr/lib64/libpython2.6.so.1.0
#51 0x00007ffff7b344e1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#52 0x00007ffff7b3475a in ?? () from /usr/lib64/libpython2.6.so.1.0
#53 0x00007ffff7b34bf1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#54 0x00007ffff7b351d4 in PyImport_ImportModuleLevel () from
/usr/lib64/libpython2.6.so.1.0
#55 0x00007ffff7b1f81b in ?? () from /usr/lib64/libpython2.6.so.1.0
#56 0x00007ffff7ae7cb2 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#57 0x00007ffff7b1fd26 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#58 0x00007ffff7b21b1e in PyEval_EvalFrameEx () from /usr/lib64
/libpython2.6.so.1.0
#59 0x00007ffff7b26431 in PyEval_EvalCodeEx () from /usr/lib64
/libpython2.6.so.1.0
#60 0x00007ffff7b1fa22 in PyEval_EvalCode () from /usr/lib64/libpython2.6.so.1.0
#61 0x00007ffff7b33145 in PyImport_ExecCodeModuleEx () from
/usr/lib64/libpython2.6.so.1.0
#62 0x00007ffff7b33384 in ?? () from /usr/lib64/libpython2.6.so.1.0
#63 0x00007ffff7b344e1 in ?? () from /usr/lib64/libpython2.6.so.1.0
#64 0x00007ffff7b3475a in ?? () from /usr/lib64/libpython2.6.so.1.0
#65 0x00007ffff7b350c3 in ?? () from /usr/lib64/libpython2.6.so.1.0
#66 0x00007ffff7b351d4 in PyImport_ImportModuleLevel () from
/usr/lib64/libpython2.6.so.1.0
#67 0x00007ffff7b1f81b in ?? () from /usr/lib64/libpython2.6.so.1.0
#68 0x00007ffff7ae7cb2 in PyObject_Call () from /usr/lib64/libpython2.6.so.1.0
#69 0x00007ffff7b1fd26 in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.6.so.1.0
#70 0x00007ffff7b21b1e in PyEval_EvalFrameEx () from /usr/lib64
/libpython2.6.so.1.0
#71 0x00007ffff7b26431 in PyEval_EvalCodeEx () from /usr/lib64
/libpython2.6.so.1.0
#72 0x00007ffff7b1fa22 in PyEval_EvalCode () from /usr/lib64/libpython2.6.so.1.0
#73 0x00007ffff7b3a791 in ?? () from /usr/lib64/libpython2.6.so.1.0
#74 0x00007ffff7ad46f0 in PyRun_InteractiveOneFlags () from
/usr/lib64/libpython2.6.so.1.0
#75 0x00007ffff7ad4811 in PyRun_InteractiveLoopFlags () from
/usr/lib64/libpython2.6.so.1.0
#76 0x00007ffff7b3b876 in PyRun_AnyFileExFlags () from
/usr/lib64/libpython2.6.so.1.0
#77 0x00007ffff7b42628 in Py_Main () from /usr/lib64/libpython2.6.so.1.0
#78 0x00007ffff6e8eb7d in __libc_start_main () from /lib64/libc.so.6
#79 0x00000000004006e9 in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb) 
openSUSE 11.3
# rpm -qa python python-matplotlib
python-matplotlib-1.0.1-17.1.x86_64
python-2.6.5-3.3.1.x86_64
# uname -a
Linux kiss 2.6.34.7-0.7-default #1 SMP 2010年12月13日 11:13:53 +0100 x86_64 x86_64
x86_64 GNU/Linux
BR,
Attila
From: Daniel M. <dan...@go...> - 2011年02月07日 21:32:51
Thanks a lot Thomas,
besides that it should be
fig.colorbar(im)
instead of
ax.colorbar(im)
the example works great!
Best regards,
Daniel
2011年2月7日 Eric Firing
> On 02/07/2011 10:48 AM, Daniel Mader wrote:
> > Hi,
> >
> > I am trying to add a (configurable) colorbar to a an array which I
> > simply plot with imshow().
> >
> > Could anyone please help me how to enhance it with a colorbar?
>
> Check out the gallery; several examples there use a colorbar.
> http://matplotlib.sourceforge.net/gallery.html
>
> Then look for relevant sections in the docs, such as
> http://matplotlib.sourceforge.net/users/image_tutorial.html
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.colorbar
> etc.
>
> Eric
>
> >
> > import scipy,pylab
> > import matplotlib.cm <http://matplotlib.cm> as cm # colormaps
> > import matplotlib.colors as col # colormaps
> >
> > dat = scipy.array([[1,2,3,4],[5,6,7,8]])
> >
> > fig = pylab.figure()
> > ax = pylab.gca()
> > ax.set_title('the title')
> >
> > ## here's chaos :)
> > #cmap = cm.get_cmap('rainbow', 20) # 10 discrete colors
> > #ax.imshow(dat, cmap=cmap, interpolation='nearest')
> > #fig.colorbar(dat)
> > #min,max = dat.min(),dat.max()
> >
> > ax.imshow(dat,interpolation='nearest')
> > pylab.show()
> >
> > Thanks a lot in advance,
> > Daniel
> >
>
From: Eric F. <ef...@ha...> - 2011年02月07日 21:23:51
On 02/07/2011 10:48 AM, Daniel Mader wrote:
> Hi,
>
> I am trying to add a (configurable) colorbar to a an array which I
> simply plot with imshow().
>
> Could anyone please help me how to enhance it with a colorbar?
Check out the gallery; several examples there use a colorbar. 
http://matplotlib.sourceforge.net/gallery.html
Then look for relevant sections in the docs, such as
http://matplotlib.sourceforge.net/users/image_tutorial.html
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.colorbar
etc.
Eric
>
> import scipy,pylab
> import matplotlib.cm <http://matplotlib.cm> as cm # colormaps
> import matplotlib.colors as col # colormaps
>
> dat = scipy.array([[1,2,3,4],[5,6,7,8]])
>
> fig = pylab.figure()
> ax = pylab.gca()
> ax.set_title('the title')
>
> ## here's chaos :)
> #cmap = cm.get_cmap('rainbow', 20) # 10 discrete colors
> #ax.imshow(dat, cmap=cmap, interpolation='nearest')
> #fig.colorbar(dat)
> #min,max = dat.min(),dat.max()
>
> ax.imshow(dat,interpolation='nearest')
> pylab.show()
>
> Thanks a lot in advance,
> Daniel
>
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Daniel M. <dan...@go...> - 2011年02月07日 20:48:59
Hi,
I am trying to add a (configurable) colorbar to a an array which I simply
plot with imshow().
Could anyone please help me how to enhance it with a colorbar?
import scipy,pylab
import matplotlib.cm as cm # colormaps
import matplotlib.colors as col # colormaps
dat = scipy.array([[1,2,3,4],[5,6,7,8]])
fig = pylab.figure()
ax = pylab.gca()
ax.set_title('the title')
## here's chaos :)
#cmap = cm.get_cmap('rainbow', 20) # 10 discrete colors
#ax.imshow(dat, cmap=cmap, interpolation='nearest')
#fig.colorbar(dat)
#min,max = dat.min(),dat.max()
ax.imshow(dat,interpolation='nearest')
pylab.show()
Thanks a lot in advance,
Daniel
From: Jorge S. <jor...@ya...> - 2011年02月07日 19:39:31
Jorge Scandaliaris <jorgesmbox-ml@...> writes:
< snip >
> I couldn't come up with a simple example showing the problem. My attempts so 
> far
> ended in working examples. I did find a change in my code that triggers the
> problem: My code uses a modified version of the lasso_demo example, contains 
> two
> axes, where I draw an image with imshow and a collection of circles with
> scatter. Originally scatter was called with a fixed size for all points, and I
> just changed it so each points gets a different size. 
> 
> Just don't ask me why this seemingly innocent change affects (breaks) the 
> event
> handling. I hope somebody can give me some hints. I'll keep checking the code 
> to
Because I couldn't reproduce the problem on simple examples, and also because I
have time constraints related to my work, I decided to go on ignoring this
problem (I can always avoid resizing windows...). This afternoon, I realized
that the problem had not appeared during the whole day, but then realized that
because I was debugging some changes introduced in my code, I had been using
very small images. After switching back to normal sizes, the problem came back. 
So, I modified the lasso_demo, increasing progressively the number polygons
drawn. When I reached 100000 polygons, I was able to reproduce the problem. It's
true that this a rather large number, but in my code it happens well below this
number, maybe because I assign a different color and size to each polygon. So my
previous observation that setting different sizes triggered the problem might
not be the real picture. It seems as if I was hitting some sort of limit.
Anyone would have a clue about what could be happening, or how can I try to
debug this?
Thanks,
jorges
From: Michael A. <sel...@gm...> - 2011年02月07日 19:33:21
On 02/07/2011 11:58 AM, Jouni K. Seppänen wrote:
> Jouni Seppänen <jk...@ik...> writes:
> 
>> In the meantime, I will commit a quick workaround that just disables
>> the fonts we can't handle instead of aborting with an assert.
> 
> Now committed in revision 8955 (1.0 maintenance branch) and 8956
> (svn trunk). Please test on your system.
The workaround fixes the error I was receiving. Thank you very much!
-- 
Michael Anselmi
Class of 2011
Mathematics (B.S.)
University of Rochester
508.507.9738
From: Eric F. <ef...@ha...> - 2011年02月07日 17:57:45
On 02/07/2011 05:47 AM, Carlos Grohmann wrote:
> Hello all,
>
> I'm developing a software for Geology, using wxpython for the GUI.
> When I want to export any graphics, clicking on the
> "save" button on the MPL toolbar, I get a dialog to save the file
> (with a default "image.png" filename) and where I
> can choose between some file formats. When I select any format from
> the drop-down list, I expected it to change the extension
> of the file on the dialog, but it doesn't. So I have to set it up
> manually. Is this a bug?
Yes. It works correctly with gtk, but it looks like there are problems 
with wx and qt4.
Eric
>
> thanks
>
From: Eric F. <ef...@ha...> - 2011年02月07日 17:52:41
On 02/07/2011 05:21 AM, Carlos Grohmann wrote:
> Hello there
>
> Is there support for exporting graphics as EMF files?
>
>> From what I've seen it seems to be discontinued.
>
> best
>
> Carlos
>
>
>
Carlos,
There is still a backend_emf.py, but I don't think it was ever complete 
(for example, it does not handle images). It has no regular maintainer. 
 I don't know to what extent it still works. It requires pyemf, which 
was last released in 2006.
Eric
From: Jouni K. S. <jk...@ik...> - 2011年02月07日 16:58:56
Jouni Seppänen <jk...@ik...> writes:
>In the meantime, I will commit a quick workaround that just disables
>the fonts we can't handle instead of aborting with an assert.
Now committed in revision 8955 (1.0 maintenance branch) and 8956
(svn trunk). Please test on your system.
From: Alex <ale...@go...> - 2011年02月07日 16:53:01
On 07.02.2011 17:17, Jouni K. Seppänen wrote:
> Jouni Seppänen<jk...@ik...> writes:
>
>> I filed this in the bug tracker: https://sourceforge.net/tracker/?func=detail&aid=3175113&group_id=80706&atid=560720
>
> I installed TeX Live 2010 on my Mac in order to test this, but
> mysteriously, the pdftex.map file does not have a line for pbkdo8y. The
> closest match is
>
> pbkdo8r URWBookmanL-DemiBold ".167 SlantFont TeXBase1Encoding ReEncodeFont"<8r.enc<ubkd8a.pfb
>
> which is the same font but with another encoding. I wonder if this
> indicates a problem in the way Ubuntu sets up TeX Live?
>
Hi Jouni,
currently Ubuntu still uses Texlive 2009. I also got the same bug 
(http://article.gmane.org/gmane.comp.python.matplotlib.general/26110) 
with Texlive 2010 installed directly from tug.org.
I think it is unlikely that this is an Ubuntu specific problem, but I 
don't know for sure whether this file gets generated during the 
installation or is unmodified from the Texlive distribution.
Greetings
Alexander
From: Jouni K. S. <jk...@ik...> - 2011年02月07日 16:17:54
Jouni Seppänen <jk...@ik...> writes:
> I filed this in the bug tracker: https://sourceforge.net/tracker/?func=detail&aid=3175113&group_id=80706&atid=560720
I installed TeX Live 2010 on my Mac in order to test this, but
mysteriously, the pdftex.map file does not have a line for pbkdo8y. The
closest match is
pbkdo8r URWBookmanL-DemiBold ".167 SlantFont TeXBase1Encoding ReEncodeFont" <8r.enc <ubkd8a.pfb
which is the same font but with another encoding. I wonder if this
indicates a problem in the way Ubuntu sets up TeX Live?
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Carlos G. <car...@gm...> - 2011年02月07日 15:48:15
Hello all,
I'm developing a software for Geology, using wxpython for the GUI.
When I want to export any graphics, clicking on the
"save" button on the MPL toolbar, I get a dialog to save the file
(with a default "image.png" filename) and where I
can choose between some file formats. When I select any format from
the drop-down list, I expected it to change the extension
of the file on the dialog, but it doesn't. So I have to set it up
manually. Is this a bug?
thanks
-- 
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
http://www.igc.usp.br/pessoais/guano
http://lattes.cnpq.br/5846052449613692
Linux User #89721
________________
Can’t stop the signal.
From: Jouni S. <jk...@ik...> - 2011年02月07日 15:38:19
On Feb 7, 2011, at 17:12 , Michael Anselmi wrote:
> On 02/07/2011 10:06 AM, Jouni K. Seppänen wrote:
>> Can you send me the pdftex.map file off-list?
>> 
>> Thanks for the bug report,
> 
> Certainly. See attached.
Thanks. It looks like there is one font for which two encoding files are specified:
pbkdo8y URWBookmanL-DemiBold ".167 SlantFont TeXnANSIEncoding ReEncodeFont" <texnansi.enc <8r.enc <ubkd8a.pfb
I guess we will need to implement slightly more of a PostScript interpreter inside matplotlib to figure out which file is to be used for re-encoding the font, unless this really means some kind of a combination of the two encodings. I'll try to find out what pdftex does with this. In the meantime, I will commit a quick workaround that just disables the fonts we can't handle instead of aborting with an assert.
I filed this in the bug tracker: https://sourceforge.net/tracker/?func=detail&aid=3175113&group_id=80706&atid=560720
Jouni
From: Carlos G. <car...@gm...> - 2011年02月07日 15:33:32
Hello there
Is there support for exporting graphics as EMF files?
>From what I've seen it seems to be discontinued.
best
Carlos
-- 
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
http://www.igc.usp.br/pessoais/guano
http://lattes.cnpq.br/5846052449613692
Linux User #89721
________________
Can’t stop the signal.
From: Jouni K. S. <jk...@ik...> - 2011年02月07日 15:07:27
Michael Anselmi <sel...@gm...> writes:
> When trying to save a matplotlib figure as a PDF with `text.usetex =
> True' in `matplotlibrc', at some point the `PsfontsMap' function in
> `dviread.py' attempts to parse TeX Live 2010's `pdftex.map' file and
> fails.
Can you send me the pdftex.map file off-list?
Thanks for the bug report,
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Paul L. <pau...@ii...> - 2011年02月07日 11:03:05
Hi all,
On Sun, 6 Feb 2011 03:54:48 PM Paul Leopardi wrote:
> I'm having trouble using multiple figures with mplot3d.
I have appended an entire example script, below.
The script incrementally plots 3 curves, one in each of 3 figure windows. The 
trouble is, once Figure 2 has finished plotting, the curve for Figure 1 
disappears and is replaced by the curve for Figure 2, with the axes for Figure 
1; once Figure 3 has finished plotting, the curves for Figures 1 and 2 
disappear and are replaced by the curve for Figure 3, with the axes for Figure 
1 and Figure 2, respectively. 
The original code was written with incremental plotting because the points 
took a long time to calculate. Without incremental plotting, the figures 
stayed blank for a long time. The script below is very similar to my original 
script, but does not depend on my GluCat library.
Best, Paul
---
# -*- coding: utf-8 -*-
# Imports needed for array calculation and plotting.
from numpy import array, floor, random, empty, cos, pi
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
# Constants to control the plotting.
C=3 # Number of curves to plot.
P=1000 # Number of points overall.
R=2 # Scaling constant to use.
N=25 # Number of points in a curve segment.
M=P/N
# Array of points.
x=empty((3,P))
rgb=empty((3))
# Plot C curves.
for i in xrange(0,C):
 # Initial point.
 x0=random.randn(3)
 # Plot a curve using a random bivector in R_{5,0}
 # with appropriate scaling.
 w=random.randn(3) * 2*pi*R/P
 # Use a new figure for each curve.
 fig=plt.figure(figsize=(15,12))
 # ax=Axes3D(fig)
 ax = fig.gca(projection='3d')
 plt.show()
 # Coordinate limits to determine the colour of the first curve segment.
 minx=array([-x0[0],x0[1],-x0[2]])
 maxx=minx.copy()
 # Split the curve into M segments, each with an appropriate colour.
 for j in range(0,M):
 # Find N points forming a curve segment by
 # exponentiating w*k for k from j*N to (j+1)*N-1.
 abot=j*N
 atop=abot+N
 for k in xrange(abot,atop):
 for h in range(0,3):
 x[h,k]=x0[h]+cos(w[h]*k)
 # Determine the colour of the curve segment.
 amid=floor((abot+atop)/2)
 for h in range(0,3):
 sign=(-1)**(h+1)
 minx[h]=min(minx[h],min(sign*x[h,abot:atop]))
 maxx[h]=max(maxx[h],max(sign*x[h,abot:atop]))
 rgb[h]=max(0.0,min((sign*x[h,amid]-minx[h])/(maxx[h]-minx[h]),1.0))
 # Plot the curve segment using the chosen colour.
 alow=(abot-1 if j>0 else abot)
 ax.plot(x[0,alow:atop],x[1,alow:atop],x[2,alow:atop],c=rgb.tolist())
 plt.draw()
 plt.show()

Showing 16 results of 16

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