📄 class_qwt_plot_layout.html
字号:
<td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_plot.html#31aacb65b5c049dde8c34a0d8482661b">QwtPlot::LegendPosition</a> QwtPlotLayout::legendPosition </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>Position of the legend </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#11c9695a68f95135841cb23212589f18">setLegendPosition()</a>, QwtPlot::setLegendPosition(), QwtPlot::legendPosition() </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00374">374</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>.<p>Referenced by <a class="el" href="qwt__plot__layout_8cpp-source.html#l00388">setLegendRatio()</a>. </td> </tr></table><a class="anchor" name="6d5d4e568ad74010742e1fdcfc1c7672"></a><!-- doxytag: member="QwtPlotLayout::legendRatio" ref="6d5d4e568ad74010742e1fdcfc1c7672" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">double QwtPlotLayout::legendRatio </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>The relative size of the legend in the plot. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#11c9695a68f95135841cb23212589f18">setLegendPosition()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00397">397</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>. </td> </tr></table><a class="anchor" name="f3f630625686721b521a8cd3c015bcbf"></a><!-- doxytag: member="QwtPlotLayout::legendRect" ref="f3f630625686721b521a8cd3c015bcbf" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const QRect & QwtPlotLayout::legendRect </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>Geometry for the legend </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#4ccba7e8e8a857cd1e16d2a68f9bcbcb">activate()</a>, <a class="el" href="class_qwt_plot_layout.html#44ce72879951571ffe4daa95be0ec242">invalidate()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00417">417</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>. </td> </tr></table><a class="anchor" name="358367bf229c02a7a062f9890a1b3507"></a><!-- doxytag: member="QwtPlotLayout::margin" ref="358367bf229c02a7a062f9890a1b3507" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int QwtPlotLayout::margin </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>margin </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#67fc75a6f4c4d368d629841df1c5e6a5">setMargin()</a>, <a class="el" href="class_qwt_plot_layout.html#e93650a8f3208578f87348334b77a282">spacing()</a>, <a class="el" href="class_qwt_plot.html#546ff473d973512141cc974e3609ad14">QwtPlot::margin()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00218">218</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>. </td> </tr></table><a class="anchor" name="068a12c510998760c727a095f5b055fe"></a><!-- doxytag: member="QwtPlotLayout::minimumSizeHint" ref="068a12c510998760c727a095f5b055fe" args="(const QwtPlot *) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QSize QwtPlotLayout::minimumSizeHint </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_plot.html">QwtPlot</a> * </td> <td class="mdname1" valign="top" nowrap> <em>plot</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return a minimum size hint. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#5a17d0ea2e9a977d48045e742f5b8cfd">QwtPlot::minimumSizeHint()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00464">464</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>.<p>References <a class="el" href="qwt__plot__axis_8cpp-source.html#l00167">QwtPlot::axisEnabled()</a>, <a class="el" href="qwt__plot__axis_8cpp-source.html#l00100">QwtPlot::axisWidget()</a>, and <a class="el" href="qwt__scale__widget_8cpp-source.html#l00698">QwtScaleWidget::minimumSizeHint()</a>. </td> </tr></table><a class="anchor" name="87154a8c0f12698113bf8990a7d579f6"></a><!-- doxytag: member="QwtPlotLayout::scaleRect" ref="87154a8c0f12698113bf8990a7d579f6" args="(int axis) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const QRect & QwtPlotLayout::scaleRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>axis</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>axis</em> </td><td>Axis index </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Geometry for the scale </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#4ccba7e8e8a857cd1e16d2a68f9bcbcb">activate()</a>, <a class="el" href="class_qwt_plot_layout.html#44ce72879951571ffe4daa95be0ec242">invalidate()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00428">428</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>. </td> </tr></table><a class="anchor" name="147fcf4c59b34779b5a7dc7361a3b6c3"></a><!-- doxytag: member="QwtPlotLayout::setAlignCanvasToScales" ref="147fcf4c59b34779b5a7dc7361a3b6c3" args="(bool)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void QwtPlotLayout::setAlignCanvasToScales </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>alignCanvasToScales</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Change the align-canvas-to-axis-scales setting. The canvas may:<ul><li>extend beyond the axis scale ends to maximize its size,</li><li>align with the axis scale ends to control its size.</li></ul><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>alignCanvasToScales</em> </td><td>New align-canvas-to-axis-scales setting</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#11667dad6675a7a58cc60ab1597b1203">setCanvasMargin()</a> </dd></dl><dl compact><dt><b>Note:</b></dt><dd>In this context the term 'scale' means the backbone of a scale. </dd></dl><dl compact><dt><b>Warning:</b></dt><dd>In case of alignCanvasToScales == true canvasMargin will have no effect </dd></dl><p>Definition at line <a class="el" href="qwt__plot__layout_8cpp-source.html#l00274">274</a> of file <a class="el" href="qwt__plot__layout_8cpp-source.html">qwt_plot_layout.cpp</a>. </td> </tr></table><a class="anchor" name="11667dad6675a7a58cc60ab1597b1203"></a><!-- doxytag: member="QwtPlotLayout::setCanvasMargin" ref="11667dad6675a7a58cc60ab1597b1203" args="(int margin, int axis=-1)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void QwtPlotLayout::setCanvasMargin </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>margin</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>axis</em> = <code>-1</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Change a margin of the canvas. The margin is the space above/below the scale ticks. A negative margin will be set to -1, excluding the borders of the scales.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>margin</em> </td><td>New margin </td></tr> <tr><td valign="top"></td><td valign="top"><em>axis</em> </td><td>One of <a class="el" href="class_qwt_plot.html#81df699dcf9dde0752c0726b5f31e271">QwtPlot::Axis</a>. Specifies where the position of the margin. -1 means margin at all borders. </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_layout.html#acf659495ecc45367eacf5f4b2aeca7d">canvasMargin()</a></dd></dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -