SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S






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






Showing 15 results of 15

From: Charlie M. <cw...@gm...> - 2006年04月12日 23:48:47
Hey all,
 So after getting the Visual Studio 7.1/Python 2.4 build working,
I am trying to get Visual Studio 6/Python2.3 working. I could use
some help on a crazy agg/c++ error I am getting. Basically the VS6
compiler is much pickier than VS7.1 I have corrected a few problems,
but I am stuck on this one:
building 'matplotlib.backends._na_backend_agg' extension
C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo
/Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. -Isrc -Iswig
-Iagg23/include -I. -Iwin32 _static\include -I.
-Iwin32_static\include\freetype2 -I.\freetype2 -Isrc\freetype2
-Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2
-Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\Python23\include
-Ic:\Python23\PC /Tpsrc/_na_backend_agg.cpp
Fobuild\temp.win32-2.3\Release\src/_na_backend_agg.obj -DNUMARRAY=3D1
_na_backend_agg.cpp
src/_na_backend_agg.cpp(63) : warning C4800: 'long' : forcing value to
bool 'true' or 'false' (performance warning)
src/_na_backend_agg.cpp(337) : error C2893: Failed to specialize
function template 'void __thiscall RendererAgg::_fill_and_stroke(VS
&,const class GCAgg &,const struct std::pair<bool,struct agg::rgba>
&,bool)'
 With the following template arguments:
 'class agg::path_storage'
src/_na_backend_agg.cpp(362) : error C2893: Failed to specialize
function template 'void __thiscall RendererAgg::_fill_and_stroke(VS
&,const class GCAgg &,const
 struct std::pair<bool,struct agg::rgba> &,bool)'
 With the following template arguments:
 'class agg::ellipse'
src/_na_backend_agg.cpp(411) : error C2893: Failed to specialize
function template 'void __thiscall RendererAgg::_fill_and_stroke(VS
&,const class GCAgg &,const
 struct std::pair<bool,struct agg::rgba> &,bool)'
 With the following template arguments:
 'class agg::path_storage'
src/_na_backend_agg.cpp(1813) : error C2893: Failed to specialize
function template 'void __thiscall RendererAgg::_fill_and_stroke(VS
&,const class GCAgg &,cons
t struct std::pair<bool,struct agg::rgba> &,bool)'
 With the following template arguments:
 'class agg::path_storage'
error: Command ""C:\Program Files\Microsoft Visual
Studio\VC98\BIN\cl.exe" /c /nologo /Ox /MD /W3 /GX /DNDEBUG
-Iwin32_static\include -I. -Isrc -Iswig -Iagg23/include -I.
-Iwin32_static\include -I. -Iwin32_static\include\freetype2
-I.\freetype2 -Isrc\freetype2 -Iswig\freetype2
-Iagg23/include\freetype2 -I.\freetype2
-Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\Python23\include
-Ic:\Python23 \PC /Tpsrc/_na_backend_agg.cpp
/Fobuild\temp.win32-2.3\Release\src/_na_backend_agg.obj -DNUMARRAY=3D1"
failed with exit status 2
Even though it says src/_na_backend_agg.cpp you should be looking at
the _backend_agg.cpp file. My only clue is that class
agg::path_storage does not conform to the VS class, but I don't know
how to fix this.
Thanks,
 Charlie
From: Darren D. <dd...@co...> - 2006年04月12日 23:26:38
On Wednesday 12 April 2006 6:34 pm, you wrote:
> Apparently this is not a trivial Latex problem. People have written
> packages to solve it. I don't know if this solves more problems than
> it causes, but with helvet+sfmath I get nice results with:
>
> ...
> \usepackage{helvet}
> \usepackage{sfmath}
> \begin{document}
> 10ドル^{-1}$
> \end{document}
>
> sfmath is not a popular package (I don't think), so requiring it as a
> prerequisite is probably not a good idea. Is it worth re-opening the
> discussion of a user specified header file for Latex?
I'm hesitant, because people will try to do things that won't work and then 
post here asking for help. I was hoping that usetex was getting to the point 
that I wouldnt have to give it so much attention... but it might be the 
easiest solution to this problem.
> From my poking around and what I have read on the internet and in my
> Latex book, I don't think we will get san-serif math fonts without a
> lot of work (or a special package).
That is my impression as well. I dont have time to look into this more 
tonight, I have to do my taxes.
Darren
From: Darren D. <dd...@co...> - 2006年04月12日 23:22:32
On Wednesday 12 April 2006 6:13 pm, John Hunter wrote:
> >>>>> "Darren" == Darren Dale <dd...@co...> writes:
>
> Darren> On Wednesday 12 April 2006 17:13, Ryan Krauss wrote:
> >> I am having a font problem with semilogx, usetex=true and
> >> font.family:sans-serif. The xticks are using a serif font.
> >> These lines are enough to recreate the problem on my machine.
> >>
> >> t=arange(0,1,0.01) y=sin(2*pi*t) figure(10) semilogx(t,y)
> >> ylabel('Mag.') xlabel('Time (sec.)') savefig('test.png')
>
> Darren> You might be able to do something like this in
> Darren> LogFormatterMathtext:
>
> Darren> if rcParams['text.usetex']: if not isDecade and
> Darren> self.labelOnlyBase: s = '' elif not isDecade: s =
> Darren> '%d$^\textnormal{%.2f}$'% (b, fx) else: s =
> Darren> '%d^\textnormal{%d}$'% (b, self.nearest_long(fx))
>
> Darren> I dont have time to test it, I'm running out the door.
>
> Hmm, the following is certainly closer than my fool-headed attempt at \rm
>
>
> usetex = rcParams['text.usetex']
> if not isDecade and self.labelOnlyBase: s = ''
> elif not isDecade:
> if usetex: s = r'$\textnormal{%d}^\textnormal{%.2f}$'% (b, fx)
> else: s = '$%d^{%.2f}$'% (b, fx)
> else:
> if usetex: s = r'$\textnormal{%d}^\textnormal{%d}$'% (b,
> self.nearest_long(fx)) else: s = r'$%d^{%d}$'% (b,
> self.nearest_long(fx))
>
>
> but the '1's still look different on my system.
>
> Is there any reason you applied the textnormal only to the exponent
> and not the base (other than running out the door)?
My quick attempt only enters math mode to typeset the exponent. Its a useful 
trick for dealing with stoichiometry: SrTiO$_3$
From: Ryan K. <rya...@gm...> - 2006年04月12日 22:34:58
Apparently this is not a trivial Latex problem. People have written
packages to solve it. I don't know if this solves more problems than
it causes, but with helvet+sfmath I get nice results with:
...
\usepackage{helvet}
\usepackage{sfmath}
\begin{document}
10ドル^{-1}$
\end{document}
sfmath is not a popular package (I don't think), so requiring it as a
prerequisite is probably not a good idea. Is it worth re-opening the
discussion of a user specified header file for Latex?
From my poking around and what I have read on the internet and in my
Latex book, I don't think we will get san-serif math fonts without a
lot of work (or a special package).
Ryan
On 4/12/06, Ryan Krauss <rya...@gm...> wrote:
> That almost works except that the exponents are still serif and they
> are gigantic (I had to add an extra slash on '\\textnormal'. The 10's
> look good though. Here is my __call__ in LogFormatterMathtext:
>
> def __call__(self, x, pos=3DNone):
> 'Return the format for tick val x at position pos'
> self.verify_intervals()
>
> b =3D self._base
> # only label the decades
> fx =3D math.log(x)/math.log(b)
> isDecade =3D self.is_decade(fx)
>
> if rcParams['text.usetex']:
> if not isDecade and self.labelOnlyBase: s =3D ''
> elif not isDecade: s =3D '%d$^\\textnormal{%.2f}$'% (b, fx)
> else: s =3D '%d^\\textnormal{%d}$'% (b, self.nearest_long(fx)=
)
>
> else:
> if not isDecade and self.labelOnlyBase: s =3D ''
> elif not isDecade: s =3D '$%d^{%.2f}$'% (b, fx)
> else: s =3D '$%d^{%d}$'% (b, self.nearest_long(fx))
>
> return s
>
> How is the font being set in Latex? Where is it set?
>
> Thanks,
>
> Ryan
>
> On 4/12/06, Darren Dale <dd...@co...> wrote:
> > On Wednesday 12 April 2006 17:13, Ryan Krauss wrote:
> > > I am having a font problem with semilogx, usetex=3Dtrue and
> > > font.family:sans-serif. The xticks are using a serif font. These
> > > lines are enough to recreate the problem on my machine.
> > >
> > > t=3Darange(0,1,0.01)
> > > y=3Dsin(2*pi*t)
> > > figure(10)
> > > semilogx(t,y)
> > > ylabel('Mag.')
> > > xlabel('Time (sec.)')
> > > savefig('test.png')
> >
> > You might be able to do something like this in LogFormatterMathtext:
> >
> > if rcParams['text.usetex']:
> > if not isDecade and self.labelOnlyBase: s =3D ''
> > elif not isDecade: s =3D '%d$^\textnormal{%.2f}$'% (b, fx)
> > else: s =3D '%d^\textnormal{%d}$'% (b, self.nearest_long(fx))
> >
> > I dont have time to test it, I'm running out the door.
> >
> > Darren
> >
>
From: John H. <jdh...@ac...> - 2006年04月12日 22:18:39
>>>>> "Darren" == Darren Dale <dd...@co...> writes:
 Darren> if rcParams['text.usetex']: if not isDecade and
 Darren> self.labelOnlyBase: s = '' elif not isDecade: s =
 Darren> '%d$^\textnormal{%.2f}$'% (b, fx) else: s =
 Darren> '%d^\textnormal{%d}$'% (b, self.nearest_long(fx))
We do want to check for usetex here, right, since this code will be
used with mathtext and usetex, and I don't think mathtext supports
textnormal.
JDH
From: John H. <jdh...@ac...> - 2006年04月12日 22:17:10
>>>>> "Darren" == Darren Dale <dd...@co...> writes:
 Darren> On Wednesday 12 April 2006 17:13, Ryan Krauss wrote:
 >> I am having a font problem with semilogx, usetex=true and
 >> font.family:sans-serif. The xticks are using a serif font.
 >> These lines are enough to recreate the problem on my machine.
 >> 
 >> t=arange(0,1,0.01) y=sin(2*pi*t) figure(10) semilogx(t,y)
 >> ylabel('Mag.') xlabel('Time (sec.)') savefig('test.png')
 Darren> You might be able to do something like this in
 Darren> LogFormatterMathtext:
 Darren> if rcParams['text.usetex']: if not isDecade and
 Darren> self.labelOnlyBase: s = '' elif not isDecade: s =
 Darren> '%d$^\textnormal{%.2f}$'% (b, fx) else: s =
 Darren> '%d^\textnormal{%d}$'% (b, self.nearest_long(fx))
 Darren> I dont have time to test it, I'm running out the door.
Hmm, the following is certainly closer than my fool-headed attempt at \rm
 usetex = rcParams['text.usetex']
 if not isDecade and self.labelOnlyBase: s = ''
 elif not isDecade: 
 if usetex: s = r'$\textnormal{%d}^\textnormal{%.2f}$'% (b, fx)
 else: s = '$%d^{%.2f}$'% (b, fx)
 else:
 if usetex: s = r'$\textnormal{%d}^\textnormal{%d}$'% (b, self.nearest_long(fx))
 else: s = r'$%d^{%d}$'% (b, self.nearest_long(fx))
but the '1's still look different on my system.
Is there any reason you applied the textnormal only to the exponent
and not the base (other than running out the door)?
JDH
From: Ryan K. <rya...@gm...> - 2006年04月12日 22:14:08
That almost works except that the exponents are still serif and they
are gigantic (I had to add an extra slash on '\\textnormal'. The 10's
look good though. Here is my __call__ in LogFormatterMathtext:
def __call__(self, x, pos=3DNone):
 'Return the format for tick val x at position pos'
 self.verify_intervals()
 b =3D self._base
 # only label the decades
 fx =3D math.log(x)/math.log(b)
 isDecade =3D self.is_decade(fx)
 if rcParams['text.usetex']:
 if not isDecade and self.labelOnlyBase: s =3D ''
 elif not isDecade: s =3D '%d$^\\textnormal{%.2f}$'% (b, fx)
 else: s =3D '%d^\\textnormal{%d}$'% (b, self.nearest_long(fx))
 else:
 if not isDecade and self.labelOnlyBase: s =3D ''
 elif not isDecade: s =3D '$%d^{%.2f}$'% (b, fx)
 else: s =3D '$%d^{%d}$'% (b, self.nearest_long(fx))
 return s
How is the font being set in Latex? Where is it set?
Thanks,
Ryan
On 4/12/06, Darren Dale <dd...@co...> wrote:
> On Wednesday 12 April 2006 17:13, Ryan Krauss wrote:
> > I am having a font problem with semilogx, usetex=3Dtrue and
> > font.family:sans-serif. The xticks are using a serif font. These
> > lines are enough to recreate the problem on my machine.
> >
> > t=3Darange(0,1,0.01)
> > y=3Dsin(2*pi*t)
> > figure(10)
> > semilogx(t,y)
> > ylabel('Mag.')
> > xlabel('Time (sec.)')
> > savefig('test.png')
>
> You might be able to do something like this in LogFormatterMathtext:
>
> if rcParams['text.usetex']:
> if not isDecade and self.labelOnlyBase: s =3D ''
> elif not isDecade: s =3D '%d$^\textnormal{%.2f}$'% (b, fx)
> else: s =3D '%d^\textnormal{%d}$'% (b, self.nearest_long(fx))
>
> I dont have time to test it, I'm running out the door.
>
> Darren
>
From: John H. <jdh...@ac...> - 2006年04月12日 22:09:57
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes:
 Ryan> I am having a font problem with semilogx, usetex=true and
 Ryan> font.family:sans-serif. The xticks are using a serif font.
 Ryan> These lines are enough to recreate the problem on my
 Ryan> machine.
 Ryan> t=arange(0,1,0.01) y=sin(2*pi*t) figure(10) semilogx(t,y)
 Ryan> ylabel('Mag.') xlabel('Time (sec.)') savefig('test.png')
The basic problem here (I think) is that the LogFormatterMathtext is
using a math font to do exponential xtick formatting and a regular
text font to do the other text in the figure
class LogFormatterMathtext(LogFormatter):
...snip
 if not isDecade and self.labelOnlyBase: s = ''
 elif not isDecade:
 s = '$%d^{%.2f}$'% (b, fx)
 else:
 s = '$%d^{%d}$'% (b, self.nearest_long(fx))
 return s
Compare with this script, where the ylabel gets the math font as well
 import matplotlib
 matplotlib.use('Agg')
 matplotlib.rcParams['text.usetex'] = True
 from pylab import figure, savefig, nx
 t=nx.arange(0,1,0.01)
 y=nx.sin(2*nx.pi*t)
 fig = figure()
 ax = fig.add_subplot(111)
 ax.semilogx(t,y)
 ax.set_ylabel(r'$\exp{\frac{1}{2}}$')
 ax.set_xlabel('Time (sec.)')
 fig.savefig('test.png')
Not sure what the right fix is here... One option would for text.py
to treat all numbers as math if usetex is enabled (not recommending
here, just free associating)
 if usetex:
 try: float(self._text)
 except ValueError: pass
 else: self._text = '$%s$' % self._text
or something to that effect. Another would be to try and force the
font for the superscripts to be the same as the regular ticks.
I thought something like this might work:
 usetex = rcParams['text.usetex']
 if not isDecade and self.labelOnlyBase: s = ''
 elif not isDecade: 
 if usetex: s = r'$\rm{%d^{%.2f}}$'% (b, fx)
 else: s = '$%d^{%.2f}$'% (b, fx)
 else:
 if usetex: s = r'$\rm{%d^{%d}}$'% (b, self.nearest_long(fx))
 else: s = r'$%d^{%d}$'% (b, self.nearest_long(fx))
but it didn't so there is something I am missing.
JDH
From: Darren D. <dd...@co...> - 2006年04月12日 21:37:40
On Wednesday 12 April 2006 17:13, Ryan Krauss wrote:
> I am having a font problem with semilogx, usetex=true and
> font.family:sans-serif. The xticks are using a serif font. These
> lines are enough to recreate the problem on my machine.
>
> t=arange(0,1,0.01)
> y=sin(2*pi*t)
> figure(10)
> semilogx(t,y)
> ylabel('Mag.')
> xlabel('Time (sec.)')
> savefig('test.png')
You might be able to do something like this in LogFormatterMathtext:
if rcParams['text.usetex']:
 if not isDecade and self.labelOnlyBase: s = ''
 elif not isDecade: s = '%d$^\textnormal{%.2f}$'% (b, fx)
 else: s = '%d^\textnormal{%d}$'% (b, self.nearest_long(fx))
I dont have time to test it, I'm running out the door.
Darren
From: Ryan K. <rya...@gm...> - 2006年04月12日 21:13:19
Attachments: test.png
I am having a font problem with semilogx, usetex=3Dtrue and
font.family:sans-serif. The xticks are using a serif font. These
lines are enough to recreate the problem on my machine.
t=3Darange(0,1,0.01)
y=3Dsin(2*pi*t)
figure(10)
semilogx(t,y)
ylabel('Mag.')
xlabel('Time (sec.)')
savefig('test.png')
The figure is attached.
Thanks,
Ryan
From: Ryan K. <rya...@gm...> - 2006年04月12日 20:46:36
I just got done tracking down a bug in my code where I had a kwargs
dict with {'linewidth':'2'}. The problem was that this worked for
much of my code and didn't fail until I tried to save an eps:
/usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py in
set_linewidth(self, linewidth, store)
 156 if linewidth !=3D self.linewidth:
 157 print('linewidth=3D'+str(linewidth))
--> 158 self._pswriter.write("%1.3f setlinewidth\n"%linewidth)
 159 if store: self.linewidth =3D linewidth
 160
TypeError: float argument required
I think it would have made more sense for this to fail earlier. I
think this should raise an error:
t=3Darange(0,1,0.01)
y=3Dsin(2*pi*t)
plot(t,y,linewidth=3D'2')
I think it should either fail all the time or work all the time, and
it is probably too much work to make it work all the time.
Any thoughts?
Ryan
From: Eric F. <ef...@ha...> - 2006年04月12日 19:45:40
Seth,
Thanks very much for the patch and test case. I will take a closer=
=20
look, and apply it to svn if everything looks OK.
Eric
Seth Olsen wrote:
>=20
> Hi,
>=20
> I've noticed a problem with colorbar when specifying the levels and=
=20
> using 'linear'.
> The colors and spacing appear to be incorrect. An example test is=
=20
> attached ('clrbr_test.py') as well as a possible fix (patch=20
> 'figure.diff'). The fix appears to work for most of the tests I've =
tried=20
> but I'm not too familiar with the code (and could be missing someth=
ing)=20
> so more testing/review would be good.
>=20
> It also changes the labeling slightly which can be changed back ( I=
=20
> prefer it this way ). Comments welcome.
>=20
> The patch applies to figure.py from 0.87.2 and was tested on OSX 10=
.3
>=20
> Cheers,
>=20
> Seth
>=20
> -------------------------------------------------------------------=
-----
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls=20
> <http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yah=
oo.com/evt=3D39663/*http://voice.yahoo.com>=20
> to the US (and 30+ countries) for 2=A2/min or less.
From: John H. <jdh...@ac...> - 2006年04月12日 16:13:18
>>>>> "Darren" == Darren Dale <dd...@co...> writes:
 Darren> I need to think about this. I'm pretty sure we can use
 Darren> module-level texmanagers, since texmanagers dont keep any
 Darren> state info (no args to __init__, no set_* functions
 Darren> ...). On the other-hand, module-level texmanagers may be a
 Darren> problem for someone who wants to do
 Darren> rcParams['text.usetex']=True after they have imported
 Darren> pylab.
This shouldn't pose any problem, because the functionality is only
called when usetex is True; they should be able to turn it on and off
at will.
I was more worried about changes in figure size and dpi. A quick
glance through the code suggests that these should be handled
properly, but I would test it before I changed it since as I mentioned
before I have this nagging feeling that there was a reason we put it
at the Renderer level.
JDH
From: Charlie M. <cw...@gm...> - 2006年04月12日 12:01:14
> I work on a xulrunner application. Xulrunner is the future
> "mozilla/gecko/xul"-based application launcher (java command of the JVM).
> For instance, Firefox 3 will be a xulrunner application et will not
> comme with all the gecko machine (like the java JVM and a java applicatio=
n).
>
> I would like to use matplotlib in XUL (the bracket XML language for GUI
> design in the mozilla world).
> The only way to show an image is with the HTML element <img src=3D"..."/>
> or <img data=3D"..."/>.
>
> I 've read matplolib tutorial about the Agg backend. It's written GTKAgg
> backend use the same process.
> I'd like to know weither the GTKAgg backend consist "simply" in showing
> an image created with the Agg backend,
> and handling all events (building a rectangle for zoom et make a zoom
> request, Rebuilding the image when the window is resized ...) ?
Yes and no. You can think of it as the GTKAgg backend simply wrapping
the Agg backend for rendering the image, but the GTKAgg backend also
simply wraps the GTK backend for doing all the event handling.=20
Likewise the GTK backend forwards events to matplotlib's base classes.
 Looking thorugh the backend_template.py file helped me.
> If I'm correct, it would be possible to implement events for the <img/>
> element and update the image when it needs like GTKAgg.
> Am I right about GTKAgg ?
As far as the image management, it is pretty easy to just use the
classes found in backend_agg.py to plot and grab the image buffer.=20
Event handling would also consist of calling the base classes found in
backend_bases.py. I don't know if your needs quite justify a
full-fledged new backend, but it could certainly be done that way.
> Would it be enough fast to work interactively ?
Using the blitting ability of Agg it should definitely be.
http://www.scipy.org/Cookbook/Matplotlib/Animations
- Charlie
From: Cyril G. <cyr...@fr...> - 2006年04月12日 10:04:24
Hello,
I work on a xulrunner application. Xulrunner is the future 
"mozilla/gecko/xul"-based application launcher (java command of the JVM).
For instance, Firefox 3 will be a xulrunner application et will not 
comme with all the gecko machine (like the java JVM and a java application).
I would like to use matplotlib in XUL (the bracket XML language for GUI 
design in the mozilla world).
The only way to show an image is with the HTML element <img src="..."/> 
or <img data="..."/>.
I 've read matplolib tutorial about the Agg backend. It's written GTKAgg 
backend use the same process.
I'd like to know weither the GTKAgg backend consist "simply" in showing 
an image created with the Agg backend,
and handling all events (building a rectangle for zoom et make a zoom 
request, Rebuilding the image when the window is resized ...) ?
If I'm correct, it would be possible to implement events for the <img/> 
element and update the image when it needs like GTKAgg.
Am I right about GTKAgg ?
Would it be enough fast to work interactively ?
Thanks a lot,
Cyril.
1 message has been excluded from this view by a project administrator.

Showing 15 results of 15

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