[gradsusr] Why the "set line" command does not work

Jeff Duda jeffduda319 at gmail.com
Mon Jun 18 12:48:25 EDT 2018


You can use the query commands (just type q <enter> at the command line and
it will give you a list of the available commands and what they do). But
you'll probably want to use 'q w2xy' which converts "world" coordinates (in
this case, your two "world" dimensions are height and mixing ratio) into
x/y page coordinates, which is what you need in a 'draw string' or 'draw
line' command. So the syntax is 'q w2xy (horizontal axis value) (vertical
axis value)' and you'll see that it will spit out real-page X and Y
coordinate. You'll need to use the sublin() and subwrd() internal functions
to capture those values and then insert them into your 'draw line' command.

Jeff Duda

On Mon, Jun 18, 2018 at 12:51 AM Gevorgyan Artur <agm86 at yandex.ru> wrote:

> Dear Jeff,
>
> Thanks a lot, the *set ccolor *command works now! I have one more
> question, I want to add a horizontal line at 4400 m in my plot,
> corresponding to the freezing level in clouds. How can I do that?
>
> Best regards,
> Artur
>
>
> 18.06.2018, 02:52, "Jeff Duda" <jeffduda319 at gmail.com>:
>
> For the 'set line' stuff, try using ccolor and cthick instead. I'm not
> sure why the cmark command didn't work, but you can try altering the order
> of the commands. Some commands reset certain plotting behaviors (although I
> don't think anything should specifically reset a cmark command).
>
> Jeff
>
> On Sun, Jun 17, 2018 at 12:27 PM Gevorgyan Artur <agm86 at yandex.ru> wrote:
>
> Dear Sir/Madam,
>
> I am trying to plot vertical profiles for simulated cloud microphysical
> paramaters using specified line colors and styles through the *set line*
> command. Please find attached my *QCLOUD.gs* script file. However, GrADS
> ignores the *set line* commands applying some default colors and only
> solid lines for vertical profiles shown in the Figure (n.jpg, attached). I
> am using Open GrADS version 2.0.2.oga.2.
>
> Best regards,
> Artur
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> --
> Jeff Duda, Research Scientist
>
> University of Colorado Boulder
>
> Cooperative Institute for Research in Environmental Sciences
>
> NOAA/OAR/ESRL/Global Systems Division
> Boulder, CO
> ,
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist

University of Colorado Boulder

Cooperative Institute for Research in Environmental Sciences

NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180618/5d978532/attachment.html>


More information about the gradsusr mailing list