comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to plot multiple charts and ho to round float to specific precision?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to plot multiple charts and ho to round float to specific precision? [message #44857 is a reply to message #44856] Wed, 27 July 2005 07:36 Go to previous messageGo to previous message
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
liko2@o2.pl wrote:
> Hi :)
>
> 1. How to plot multiple plots (eg 8-10 on one page of A4) but not using
> multiplot?

Very simply,

!p.multi=[0,3,4]

or is that what you mean by multiplot?

Otherwise investigate the position keyword and have a look at

http://www.dfanning.com/documents/tips.html

Under "Graphics Display Tips (2D)"

> 2. How to round float eg. 23,45654 to 23,46?

I think you mean 23.35654 to 23.46? In which case you can use something
like the ceil/floor/round functions. For the example you gave, you need
to do something like

num=23.45654
ans=round(100.*num)/100.

HTH,

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Text widget error checking
Next Topic: Re: Text widget error checking

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:39:08 PDT 2025

Total time taken to generate the page: 1.52082 seconds