Re: creating own symbols for plot [message #38440] |
Mon, 08 March 2004 00:23 |
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  |
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  |
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/
|
|
|