Sets the scale. Everything, including labels, line thicknesses, etc will be scaled by this factor. Also multiplies the plot size by this value. Used for 'Create high-resolution plot'. Should be called before creating the plot. Note that plots with a scale different from 1.0 must not be shown in a
(float scale)
| 675 | * Note that plots with a scale different from 1.0 must not be shown in a PlotWindow, but only as |
| 676 | * simple image in a normal ImageWindow. */ |
| 677 | public void setScale(float scale) { |
| 678 | this.scale = scale; |
| 679 | if (scale > 20f) scale = 20f; |
| 680 | if (scale < 0.7f) scale = 0.7f; |
| 681 | pp.width = sc(pp.width); |
| 682 | pp.height = sc(pp.height); |
| 683 | plotDrawn = false; |
| 684 | } |
| 685 | |
| 686 | /** Sets the labels of the x and y axes. 'xLabel', 'yLabel' may be null. |
| 687 | * If a label has the form {txt1,txt2,txt3}, the corresponding axis will be labeled |
no test coverage detected