Commits
Ville Suoranta authored 4529fa36396 Merge
221 221 | void PlotCanvas::setBackground(const String& color, |
222 222 | PlotAreaFill::Pattern pattern) { |
223 223 | PlotAreaFillPtr bg = background(); |
224 224 | bg->setColor(color); |
225 225 | bg->setPattern(pattern); |
226 226 | setBackground(*bg); |
227 227 | } |
228 228 | |
229 229 | |
230 230 | |
231 - | // checking hypothesis: this is not used anywhere |
232 231 | bool PlotCanvas::isAxisShown(PlotAxis axis) const { |
233 232 | return shownAxes() & axis; |
234 233 | } |
235 - | |
236 234 | |
237 235 | |
238 236 | /* DSW: SITE OF X-Y SHORTCIRCUIT */ |
239 237 | void PlotCanvas::showAxis(PlotAxis axis, bool show) { |
240 238 | PlotAxisBitset axes = shownAxes(); |
241 239 | if (show) axes |= (PlotAxisBitset)axis; |
242 240 | else axes &= ~(PlotAxisBitset)axis; |
243 241 | showAxes(axes); /* calls QPCanvas::showAxes() */ |
244 242 | } |
245 243 | |