Hi guys,
I am quite new to matplotlib. I wanna know how to change the aspect of my plot in my program. I don’t wanna change it by toolbar coz there are thousands of data that I can’t change them one by one by myself.
Thanks,
Forrest
···
–
Forrest Sheng Bao
Ph.D. student, Dept. of Computer Science
M.Sc. student, Dept. of Electrical & Computer Engineering
Texas Tech University, USA
http://fsbao.net
1-806-577-4592
Forrest is an equal opportunity Email sender.
- You are encouraged to use the language you prefer. Beyond English, I can also read traditional/simplified Chinese and a bit German.
- I will only send you files that can be opened by free or open source software.
Call set_aspect on a axes instance; then call apply_aspect.
hth,
Alan Isaac
···
On Fri, 29 Feb 2008, Forrest Sheng Bao apparently wrote:
I wanna know how to change the aspect of my
plot in my program.
Well, I want a way that I can use some function or an option/parameter of a function to do that.
The code I am using to plot is like this:
x = range(0,len(data));
lines = plot(x, data);
setp(lines, linewidth=0.5)
axis(‘tight’)
grid(True);
xlabel(‘sampling points’);
ylabel(‘quantilized steps’);
title(sys.argv[1][:-4]);
savefig(‘eps/’+sys.argv[1][:-4]+‘.eps’)
savefig(‘png/’+sys.argv[1][:-4]+‘.png’)
Cheers,
Forrest
···
On Fri, Feb 29, 2008 at 5:53 AM, Alan G Isaac <aisaac@…310…> wrote:
On Fri, 29 Feb 2008, Forrest Sheng Bao apparently wrote:
I wanna know how to change the aspect of my
plot in my program.
Call set_aspect on a axes instance; then call apply_aspect.
hth,
Alan Isaac
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
–
Forrest Sheng Bao
Ph.D. student, Dept. of Computer Science
M.Sc. student, Dept. of Electrical & Computer Engineering
Texas Tech University, USA
http://fsbao.net
1-806-577-4592
Forrest is an equal opportunity Email sender.
- You are encouraged to use the language you prefer. Beyond English, I can also read traditional/simplified Chinese and a bit German.
- I will only send you files that can be opened by free or open source software.