Re: [Matplotlib-users] Matplotlib-users Digest, Vol 12, Issue 1

2007-05-03 Thread Mark Bakker

A quick fix (since you need an exam, I guess) would be to make the label
with the 'text' command and put it where you want it.
I am interested in an elegant fix,
Mark

On 5/2/07, [EMAIL PROTECTED]



Date: Wed, 2 May 2007 11:39:03 -0500
From: "Ryan Krauss" <[EMAIL PROTECTED]>
Subject: [Matplotlib-users] creating a blank graph with room for hand
written tick labels.
To: matplotlib-users 
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

I am writing a final exam and I want my students to sketch a graph of
something and label the plot themselves.  So, I need to create an axis
with x and y labels, but with no tick marks.  This I can do, but
creating blank tick marks seems to get rid of the space where the
students would write in their own tick marks.  Playing with
xtick.major.pad doesn't seem to help.  What should I be doing?  This
is my code:

figure(20)
clf()
xlim([0,0.1])
ylim([-10,10])
xlabel('Time (sec)')

yticks(arange(-10,11,2))#,['']*10)

ylabel(r'$v_{out}(t)$')
grid(True)
fname='blank_time_plot.eps'
outdir='figs'

ylim([-5,5])
yticks(arange(-5,5.2),['']*10)
xticks(arange(1,10),['']*10)

and the result is attached (png).

Thanks,

Ryan
-- next part --
A non-text attachment was scrubbed...
Name: blank.png
Type: image/png
Size: 19059 bytes
Desc: not available

--

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


End of Matplotlib-users Digest, Vol 12, Issue 1
***

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] FigureCanvasWx setting font properties

2007-05-03 Thread Uwe Schmitt

Hi,

I'm using

 from matplotlib.backends.backend_wx import FigureCanvasWx

for plotting data. It works fine, but the font used on
Windows XP is not really pretty. I would like to use another
font family and another size.

How can I achieve this ?

And another question: I'm using add_subplots mehtod for plotting,
and I would like to increase the vertical space between the
different subplots. Any hint how to do this ?

Greetings, Uwe


begin:vcard
fn:Dr. Uwe Schmitt
n:Schmitt;Uwe
org:mineway GmbH;F & E Mathematik
adr;quoted-printable;dom:;;Stuhlsatzenhausweg;Saarbr=C3=BCcken;;66123
email;internet:[EMAIL PROTECTED]
tel;work:0681 8390 5334
tel;fax:0681 830 4376
note;quoted-printable:Dr. rer. nat. Uwe Schmitt=0D=0A=
	Forschung & Entwicklung=0D=0A=
	Mathematik=0D=0A=
	=0D=0A=
	mineway GmbH=0D=0A=
	Science Park 2=0D=0A=
	D-66123 Saarbr=C3=BCcken=0D=0A=
	=0D=0A=
	Telefon: +49 (0)681 8390 5334=0D=0A=
	Telefax: +49 (0)681 830 4376=0D=0A=
	=0D=0A=
	[EMAIL PROTECTED]
	www.mineway.de=0D=0A=
	=0D=0A=
	Gesch=C3=A4ftsf=C3=BChrung: Dr.-Ing. Mathias Bauer=0D=0A=
	Amtsgericht Saarbr=C3=BCcken HRB 12339=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	
x-mozilla-html:FALSE
url:http://www.mineway.de
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] FigureCanvasWx setting font properties

2007-05-03 Thread Werner F. Bruhin
Hi Uwe,

Uwe Schmitt wrote:
> Hi,
>
> I'm using
>
>  from matplotlib.backends.backend_wx import FigureCanvasWx
>
> for plotting data. It works fine, but the font used on
> Windows XP is not really pretty. I would like to use another
> font family and another size.

I just recently discovered this for a Vista legend problem I had (they 
were to big).

from matplotlib.font_manager import FontProperties
self.figure.legend((statsLinesP + statsLinesC), (statsTextsP + 
statsTextsC),
loc=self.legendPos, prop=FontProperties(size='smaller'))

Werner

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [mailinglist] Re: FigureCanvasWx setting font properties

2007-05-03 Thread Uwe Schmitt

Werner F. Bruhin wrote:

Hi Uwe,

Uwe Schmitt wrote:

Hi,

I'm using

 from matplotlib.backends.backend_wx import FigureCanvasWx

for plotting data. It works fine, but the font used on
Windows XP is not really pretty. I would like to use another
font family and another size.


I just recently discovered this for a Vista legend problem I had (they 
were to big).


from matplotlib.font_manager import FontProperties
   self.figure.legend((statsLinesP + statsLinesC), (statsTextsP + 
statsTextsC),

   loc=self.legendPos, prop=FontProperties(size='smaller'))



Thanks for your hint. But it does not work for me. title() does not 
support a 'prop' argument.


But I found a solution. One can write

axes.set_title("title", fontsize=10)

which works for me.

But I have another question concerning fontsize's :
How can I set the fontsize of the x- and y-ticks-labels 

Greetings, Uwe


--

Dr. rer. nat. Uwe Schmitt
F&E Mathematik

mineway GmbH
Science Park 2
D-66123 Saarbrücken

Telefon: +49 (0)681 830 5334
Telefax: +49 (0)681 830 4376

[EMAIL PROTECTED]
www.mineway.de

Geschäftsführung: Dr.-Ing. Mathias Bauer
Amtsgericht Saarbrücken HRB 12339


begin:vcard
fn:Dr. Uwe Schmitt
n:Schmitt;Uwe
org:mineway GmbH;F & E Mathematik
adr;quoted-printable;dom:;;Stuhlsatzenhausweg;Saarbr=C3=BCcken;;66123
email;internet:[EMAIL PROTECTED]
tel;work:0681 8390 5334
tel;fax:0681 830 4376
note;quoted-printable:Dr. rer. nat. Uwe Schmitt=0D=0A=
	Forschung & Entwicklung=0D=0A=
	Mathematik=0D=0A=
	=0D=0A=
	mineway GmbH=0D=0A=
	Science Park 2=0D=0A=
	D-66123 Saarbr=C3=BCcken=0D=0A=
	=0D=0A=
	Telefon: +49 (0)681 8390 5334=0D=0A=
	Telefax: +49 (0)681 830 4376=0D=0A=
	=0D=0A=
	[EMAIL PROTECTED]
	www.mineway.de=0D=0A=
	=0D=0A=
	Gesch=C3=A4ftsf=C3=BChrung: Dr.-Ing. Mathias Bauer=0D=0A=
	Amtsgericht Saarbr=C3=BCcken HRB 12339=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	=0D=0A=
	
x-mozilla-html:FALSE
url:http://www.mineway.de
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] matplolib equivalent of gnuplot's impulse

2007-05-03 Thread Emmanuel

With gnuplot one can do a plot like that :

http://www.deqnotes.net/gnuplot/images/impulses.png

It is using option "with impulse".
Is there an equivalent in matplotlib?
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] build error on solaris

2007-05-03 Thread Daniel Fan
I think the problem is the building use the same
command for compiling
.c file and .cpp/.cxx file. It uses whatever I set to
$CC to compile the
file and ignore $CXX.
I am using the latest ActivePython for solaris.
I've tried to set $CC=g  , then I got the following
error message:
compute:/home/yfan/usr/local/src/matplotlib-0.87.7>
CC=g   python
setup.py build
GTK requires pygtk
GTKAgg requires pygtk
running build
running build_py
running build_ext
building 'matplotlib._agg' extension
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c src/agg.cxx -o
build/temp.solaris-2.10-sun4u-2.5/src/agg.o
g  : language code=pic32 not recognized
g  : src/agg.cxx: linker input file unused since
linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_trans_affine.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_trans_affine.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_trans_affine.cpp: linker input file
unused since
linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_path_storage.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_path_storage.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_path_storage.cpp: linker input file
unused since
linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_bezier_arc.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_bezier_arc.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_bezier_arc.cpp: linker input file
unused since
linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_vcgen_dash.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_dash.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_vcgen_dash.cpp: linker input file
unused since
linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_vcgen_stroke.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_stroke.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_vcgen_stroke.cpp: linker input file
unused since
linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_rasterizer_scanline_aa.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_rasterizer_scanline_aa.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_rasterizer_scanline_aa.cpp: linker
input file unused
since linking not done
g   -DNDEBUG -O -xcode=pic32 -Iagg23/include -Isrc
-Iswig
-I/home/yfan/usr/local/share/ASpy25/include/python2.5
-c
agg23/src/agg_curves.cpp -o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_curves.o
g  : language code=pic32 not recognized
g  : agg23/src/agg_curves.cpp: linker input file
unused since linking
not done
CC -G build/temp.solaris-2.10-sun4u-2.5/src/agg.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_trans_affine.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_path_storage.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_bezier_arc.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_dash.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_stroke.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_rasterizer_scanline_aa.o
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_curves.o
-lstdc   -lm -o
build/lib.solaris-2.10-sun4u-2.5/matplotlib/_agg.so
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/src/agg.o: open
failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_trans_affine.o:
open
failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_path_storage.o:
open
failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_bezier_arc.o:
open
failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_dash.o:
open
failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_vcgen_stroke.o:
open
failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_rasterizer_scanline_aa.o:
open failed: No such file or directory
ld: fatal: file
build/temp.solaris-2.10-sun4u-2.5/agg23/src/agg_curves.o:
open failed:
No such file or directory
ld: warning: symbol `clog' has differing types:
(file /usr/local/lib/libstdc  .so type=OBJT; file
/usr/lib/libm.so
type=FUNC);
/usr/local/lib/libstdc  .so definition taken
ld: fatal: File processing errors. No output written
to
build/lib.solaris-2.10-sun4u-2.5/matplotlib/_agg.so
error: command 'CC' failed with exit status 1


Nadia Dencheva wrote:
> Try building it with g  . G