[email protected] <
[email protected]> wrote:
I am wondering, I can I change the size of an xyplot created by
Plotchart ?
Is it sometime like
::Plotchart::plotconfig xyplot margin bottom 40
::Plotchart::plotconfig xyplot margin left 0
I have tried these but the chart remains the same size.
Any help is appreciated.
From the docs (
https://core.tcl-lang.org/tklib/doc/trunk/embedded/www/tklib/files/modules/plotchart/plotchart.html),
it appears that you specify the size of the plot when you create it:
::Plotchart::createXYPlot w xaxis yaxis args
list xaxis (in)
A 3-element list containing minimum, maximum and stepsize for
the x-axis, in this order. For an inverted axis, where the maximum
appears on the left-hand side, use: maximum, minimum and a negative
stepsize.
list yaxis (in)
A 3-element list containing minimum, maximum and stepsize for
the y-axis, in this order. For an inverted axis, where the maximum
appears at the bottom, use: maximum, minimum and a negative
stepsize.
Or by the xconfig/yconfig commands:
$anyplot xconfig -option value ...
scale scale_data
New scale data for the axis, i.e. a 3-element list containing
minimum, maximum and stepsize for the axis, in this order.
Beware: Setting this option will clear all data from the plot.
But note the "Beware" warning in the docs for xconfig/yconfig.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)