how to get format variable value

96 views
Skip to first unread message

刚 王

unread,
Jun 6, 2012, 7:16:46 AM6/6/12
to Gams to Gnuplot
i am learning gnuplotxyz,the big problem that i met is how i can find
the list of value of format varibles ,the contents of website
http://www.uni-hamburg.de/Wiss/FB/15/Sustainability/schneider/gnuplot/
are too simple, who can tell me how to find the whole list of value
of format varibles? Thanks for your answers or advices.

UAS

unread,
Jun 6, 2012, 7:52:46 AM6/6/12
to Gams to Gnuplot
Hi, the most important values are on the web page you cited. In
addition, you can look at the example files.

To answer your question exactly, however, I have extracted all current
control variables from the gnuplotxyz.gms file using a simple awk
script.

The resulting list is below. To find out exactly what a control
variable does, you need to go to the gnuplotxyz.gms and search for the
control variable in question.

Hope this helps, Uwe

dont_delete_list
gp_add_xvalue_1D
gp_axes_l1
gp_axes_l10
gp_axes_l11
gp_axes_l12
gp_axes_l13
gp_axes_l14
gp_axes_l15
gp_axes_l16
gp_axes_l17
gp_axes_l18
gp_axes_l19
gp_axes_l2
gp_axes_l20
gp_axes_l3
gp_axes_l4
gp_axes_l5
gp_axes_l6
gp_axes_l7
gp_axes_l8
gp_axes_l9
gp_axwidth
gp_bdwidth
gp_bmargin
gp_borddim
gp_border
gp_boxwid
gp_boxwidth
gp_color
gp_fill
gp_fixcolor_set
gp_font
gp_fontsize
gp_gline
gp_grid
gp_hist
gp_keeptitleinppt
gp_key
gp_keybox
gp_keyopt
gp_keyoption
gp_keytitle
gp_l10axes
gp_l10style
gp_l11axes
gp_l11style
gp_l12axes
gp_l12style
gp_l13axes
gp_l13style
gp_l14axes
gp_l14style
gp_l15axes
gp_l15style
gp_l16axes
gp_l16style
gp_l17axes
gp_l17style
gp_l18axes
gp_l18style
gp_l19axes
gp_l19style
gp_l1axes
gp_l1style
gp_l20axes
gp_l20style
gp_l2axes
gp_l2style
gp_l3axes
gp_l3style
gp_l4axes
gp_l4style
gp_l5axes
gp_l5style
gp_l6axes
gp_l6style
gp_l7axes
gp_l7style
gp_l8axes
gp_l8style
gp_l9axes
gp_l9style
gp_label
gp_label_1
gp_label_2
gp_label_3
gp_label_4
gp_label_5
gp_label_6
gp_label_7
gp_label_8
gp_label_9
gp_lc_1
gp_lc_10
gp_lc_11
gp_lc_12
gp_lc_13
gp_lc_14
gp_lc_15
gp_lc_16
gp_lc_17
gp_lc_18
gp_lc_19
gp_lc_2
gp_lc_20
gp_lc_21
gp_lc_22
gp_lc_23
gp_lc_24
gp_lc_25
gp_lc_26
gp_lc_27
gp_lc_28
gp_lc_29
gp_lc_3
gp_lc_30
gp_lc_31
gp_lc_32
gp_lc_33
gp_lc_34
gp_lc_35
gp_lc_36
gp_lc_37
gp_lc_38
gp_lc_39
gp_lc_4
gp_lc_40
gp_lc_5
gp_lc_6
gp_lc_7
gp_lc_8
gp_lc_9
gp_linewidth
gp_lmargin
gp_logscale
gp_loop1
gp_loop2
gp_loop3
gp_loop4
gp_lw_1
gp_lw_10
gp_lw_11
gp_lw_12
gp_lw_13
gp_lw_14
gp_lw_15
gp_lw_16
gp_lw_17
gp_lw_18
gp_lw_19
gp_lw_2
gp_lw_20
gp_lw_3
gp_lw_4
gp_lw_5
gp_lw_6
gp_lw_7
gp_lw_8
gp_lw_9
gp_lwidth
gp_morestyle1
gp_morestyle2
gp_morestyle3
gp_mouse
gp_movenewhistogramlabels
gp_multiplot
gp_multiplot_count
gp_multiplotlayout
gp_multiplottitle
gp_na
gp_name
gp_newhistogramgap
gp_option_1
gp_option_2
gp_option_3
gp_option_4
gp_pointsize
gp_pointsz
gp_ppt
gp_ppt_1_name
gp_ppt_2
gp_ppt_2_name
gp_ppt_3
gp_ppt_3_name
gp_ppt_4
gp_ppt_4_name
gp_ppt_5
gp_ppt_5_name
gp_ppt_6
gp_ppt_6_name
gp_ppt_7
gp_ppt_7_name
gp_ppt_8
gp_ppt_8_name
gp_ppt_9
gp_ppt_9_name
gp_ppt_boldfont
gp_ppt_fontname
gp_ppt_fontsize
gp_rectangle
gp_resetstyle
gp_rmargin
gp_size
gp_style
gp_supzero
gp_term
gp_tics
gp_title
gp_tmargin
gp_use_version_base
gp_wheight
gp_wlength
gp_x1y1
gp_x1y2
gp_x2axis
gp_x2label
gp_x2range
gp_x2scale
gp_x2y1
gp_x2y2
gp_xform
gp_xgrid
gp_xinc
gp_xl_l1
gp_xl_l2
gp_xl_l3
gp_xl_l4
gp_xlabel
gp_xrange
gp_xtics
gp_xxxvalue
gp_xzeroax
gp_y2axis
gp_y2label
gp_y2range
gp_y2scale
gp_ygrid
gp_yinc
gp_yl_l1
gp_yl_l2
gp_yl_l3
gp_yl_l4
gp_ylabel
gp_ymin
gp_yrange
gp_ytics
gp_yyyvalue
gp_yzeroax
gp_zeroax
gp_zeroend
gp_zl_l1
gp_zl_l2
gp_zl_l3
gp_zl_l4
gp_zlabel




On Jun 6, 1:16 pm, 刚 王 <wangg0...@gmail.com> wrote:
> i am learning gnuplotxyz,the big problem that i met is how i can find
> the list of value of format varibles ,the contents of  websitehttp://www.uni-hamburg.de/Wiss/FB/15/Sustainability/schneider/gnuplot/

UAS

unread,
Jun 8, 2012, 8:49:12 AM6/8/12
to Gams to Gnuplot
... I have listed the program to extract the gams-gnuplot control
variables here:
http://www.uni-hamburg.de/Wiss/FB/15/Sustainability/schneider/awk/awk_gams.htm
Go to examples
Best, Uwe

王刚

unread,
Jul 5, 2012, 12:30:17 AM7/5/12
to gnupl...@googlegroups.com
dear UAS :
i have another question about how to trun time series parameter,such
as p(t)---price across time from period 1 to period 10, if entering in
a gams file $include gnuplotxyz p, i get a histogram,but i need a line
graph,how to modify statement?
can you help me!!! i need your help!!
cheers!

2012/7/5, 王刚 <wang...@gmail.com>:
> thank you so much!
>
>
>
> 2012/6/8, UAS <uwe.a.s...@googlemail.com>:

王刚

unread,
Jul 5, 2012, 12:21:39 AM7/5/12
to gnupl...@googlegroups.com
thank you so much!



2012/6/8, UAS <uwe.a.s...@googlemail.com>:

王刚

unread,
Jul 5, 2012, 5:24:47 AM7/5/12
to gnupl...@googlegroups.com
thank you for you answer,but it is not what i need.
i do CGE in gamside,generally the model will return a variable as
p(t) if i do dynamic CGE.i want to make a line graph for p(t), i don't
know how to transform p(t) to a parameter which can be using
gnuplotxyz line graph rule .
so can you give me a hint!!!
cheers

2012/7/5, UAS <uwe.a.s...@googlemail.com>:
> For a line plot you need to use a three dimensional parameter
>
> The number of elements in the first argument determines the number of
> different lines in a plot. The number of elements in the second argument
> determines the number of points on a particular line. The order of elements
>
> in the second index determines how the different data points pertaining to
> one line are connected. The remaining argument (third index) must contain
> at least two set elements of which one represents the x-axis and a second
> the y-axis coordinates.
>
> minimum for line plots
> $libinclude gnuplotxyz < *parameter name> <xaxis element> <yaxis element>
> *
>
> Hope this helps, Uwe

UAS

unread,
Jul 6, 2012, 9:08:15 AM7/6/12
to gnupl...@googlegroups.com
the line graph works on three dimensional variables as well as one three dimensional parameters
however, it is very easy to copy a variable value into a parameter

e.g.

parameter
plot_pt(*,*,*)
;

plot_pt("solution1",t,"price") = p.L(t);
plot_pt("solution1",t,"time") = ord(t)+2011;

$libinclude gnuplotxyz plot_pt time price



On Thursday, July 5, 2012 11:24:47 AM UTC+2, 刚 王 wrote:
thank you for you answer,but it is not what i need.
 i do CGE in gamside,generally the model will return a variable as
p(t) if i do dynamic CGE.i want to make a line graph for p(t), i don't
know how to transform p(t) to a parameter which can be using
gnuplotxyz line graph rule .
so can you give me a hint!!!
cheers

2012/7/5, UAS <uwe.a.schneider@googlemail.com>:
> For a line plot you need to use a three dimensional parameter
>
> The number of elements in the first argument determines the number of
> different lines in a plot.  The number of elements in the second argument
> determines the number of points on a particular line. The order of elements
>
> in the second index determines how the different data points pertaining to
> one line are connected. The remaining argument (third index) must contain
> at least two set elements of which one represents the x-axis and a second
> the y-axis coordinates.
>
> minimum for line plots
> $libinclude gnuplotxyz < *parameter name> <xaxis element> <yaxis element>
> *
>
> Hope this helps, Uwe
>
>
> On Thursday, July 5, 2012 6:30:17 AM UTC+2, 刚 王 wrote:
>>
>> dear UAS :
>> i have another question about how to trun time series parameter,such
>> as p(t)---price across time from period 1 to period 10, if entering in
>> a gams file $include gnuplotxyz p, i get a histogram,but i need a line
>> graph,how to modify statement?
>> can you help me!!! i need your help!!
>> cheers!
>>
>> 2012/7/5, 王刚 <wang...@gmail.com>:
>> > thank you so much!
>> >
>> >
>> >
>> > 2012/6/8, UAS <uwe.a.schneider@googlemail.com>:

王刚

unread,
Jul 7, 2012, 7:37:50 AM7/7/12
to gnupl...@googlegroups.com
thank you for your help!!
gnuplotxyz is a good tool to plot,i will enjoy it always!

cheers

2012/7/6, UAS <uwe.a.s...@googlemail.com>:
> the line graph works on three dimensional variables as well as one three
> dimensional parameters
> however, it is very easy to copy a variable value into a parameter
>
> e.g.
>
> parameter
> plot_pt(*,*,*)
> ;
>
> plot_pt("solution1",t,"price") = p.L(t);
> plot_pt("solution1",t,"time") = ord(t)+2011;
>
> $libinclude gnuplotxyz plot_pt time price
>
>
> On Thursday, July 5, 2012 11:24:47 AM UTC+2, 刚 王 wrote:
>>
>> thank you for you answer,but it is not what i need.
>> i do CGE in gamside,generally the model will return a variable as
>> p(t) if i do dynamic CGE.i want to make a line graph for p(t), i don't
>> know how to transform p(t) to a parameter which can be using
>> gnuplotxyz line graph rule .
>> so can you give me a hint!!!
>> cheers
>>
>> 2012/7/5, UAS <uwe.a.s...@googlemail.com>:
>> >> > 2012/6/8, UAS <uwe.a.s...@googlemail.com>:
Reply all
Reply to author
Forward
0 new messages