By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Pymat

P: n/a
Hi Group,

Hope someone can help me with this problem. I am a new user to python
and am currently working with pymat module of python.

I tried to create plots thru pymat using pymat.eval(h, 'plot(x,y)')
This is working fine. However, i dont know how to print or save this
plot as a .tif image something like

print(gcf, '-dtiff', 'test')

using pymat.

Please help me!!!!

Thanks
Leeny
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
le**********@hotmail.com (Leeny) wrote in message news:<ca**************************@posting.google. com>...
Hi Group,

Hope someone can help me with this problem. I am a new user to python
and am currently working with pymat module of python (for coursework).
I tried to create plots thru pymat using pymat.eval(h, 'plot(x,y)')
This is working fine. However, i dont know how to print or save this
plot as a .tif image something like

print(gcf, '-dtiff', 'test')

using pymat. One suggestion I got was to use mathplotlib, but since i have done
some work uisng pymat, I would like to know if there is some way it
can be done using Pymat.
Please help me!!!!

Thanks
Leeny

Jul 18 '05 #2

P: n/a
On 16 Apr 2004 07:42:04 -0700, Leeny <le**********@hotmail.com> wrote:
le**********@hotmail.com (Leeny) wrote in message news:<ca**************************@posting.google. com>...
Hi Group,

Hope someone can help me with this problem. I am a new user to python
and am currently working with pymat module of python (for coursework).

I tried to create plots thru pymat using pymat.eval(h, 'plot(x,y)')
This is working fine. However, i dont know how to print or save this
plot as a .tif image something like

print(gcf, '-dtiff', 'test')

using pymat.

One suggestion I got was to use mathplotlib, but since i have done
some work uisng pymat, I would like to know if there is some way it
can be done using Pymat.


The last parameter of eval is the literal matlab command as a string (ie
quotes before and after it).

In other words if you type XYZ to do it in matlab, then the pymat
equivalent is pymat.eval(h,'XYZ')

If you have ' inside XYZ, use " instead, like pymat.eval(h,"XYZ") .

So, if the print command is how to print something, do

pymat.eval(h,"print(gcf, '-dtiff', 'test')")
Albert
--
Unlike popular belief, the .doc format is not an open publically available format.
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.