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

Home » Public Forums » archive » Re: creating own symbols for plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: creating own symbols for plot [message #38440] Mon, 08 March 2004 00:23
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Klemens Barfus wrote:
> Hello together,
> I want to create own symbols for the plots with the usersym-command.
> When I want to create a square to plot, I have to know the ratio between
> x- and y-axis, when it is not isotropic.
> Is there a way to get this ratio or do I have to specify this plot for
> example with the position keyword and get the ratio from the values for
> this keyword and the size of the page ?
>
> Thanks for your help in advance !
>
> Klemens
>

Dear Klemens

you could try our x_digigisym routine.

This is a widget which could be used to draw a usersign. The data is
stored as idl procedure with an example.


http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase/x_digisym_dbase.pro.html

regards

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: creating own symbols for plot [message #38444 is a reply to message #38440] Sat, 06 March 2004 09:59 Go to previous message
Klemens Barfus is currently offline  Klemens Barfus
Messages: 45
Registered: December 2002
Member
Thanks David !
You are right - I should have tried it before.

Cheers,

Klemens

David Fanning wrote:

> Klemens Barfus writes:
>
>
>> I want to create own symbols for the plots with the usersym-command.
>> When I want to create a square to plot, I have to know the ratio between
>> x- and y-axis, when it is not isotropic.
>> Is there a way to get this ratio or do I have to specify this plot for
>> example with the position keyword and get the ratio from the values for
>> this keyword and the size of the page ?
>
>
> I don't think this is true. The "dimensions" of the symbol
> in UserSym are isotropic, and the symbol is placed on the
> plot in device units. So a square is a square is a square,
> no matter what size window you are using, or what the ranges
> of the axes are.
>
> You can have a look at MPI_PLOT if you like to confirm this:
>
> http://www.dfanning.com/programs/mpi_plot.zip
>
> There are any number of symbols there, including open and filled
> squares, and they always appear the same.
>
> Cheers,
>
> David
Re: creating own symbols for plot [message #38445 is a reply to message #38444] Sat, 06 March 2004 09:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Klemens Barfus writes:

> I want to create own symbols for the plots with the usersym-command.
> When I want to create a square to plot, I have to know the ratio between
> x- and y-axis, when it is not isotropic.
> Is there a way to get this ratio or do I have to specify this plot for
> example with the position keyword and get the ratio from the values for
> this keyword and the size of the page ?

I don't think this is true. The "dimensions" of the symbol
in UserSym are isotropic, and the symbol is placed on the
plot in device units. So a square is a square is a square,
no matter what size window you are using, or what the ranges
of the axes are.

You can have a look at MPI_PLOT if you like to confirm this:

http://www.dfanning.com/programs/mpi_plot.zip

There are any number of symbols there, including open and filled
squares, and they always appear the same.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: vectorising versus loops
Next Topic: Re: Widgets in VM

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

Current Time: Fri Oct 10 07:43:27 PDT 2025

Total time taken to generate the page: 0.72153 seconds