[Kst] extragear/graphics/kst/kst
Ted Kisner
tskisner.public at gmail.com
Wed Oct 26 00:21:21 CEST 2005
SVN commit 474281 by tskisner:
Plot gridlines after the basecurves but before axes. This way images do not cover up the grid lines.
M +9 -9 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #474280:474281
@@ -2424,15 +2424,6 @@
bt[i_bt++] = bench_time.elapsed();
#endif
- // must plot grid lines before axes
- plotGridLines(p,
- tpx.tick, xleft_bdr_px, xright_bdr_px, x_orig_px, xtick_px, xtick_len_px, x_px,
- tpy.tick, ytop_bdr_px, ybot_bdr_px, y_orig_px, ytick_px, ytick_len_px, y_px);
-
-#ifdef BENCHMARK
- bt_label[i_bt] = "Plot Grid Lines";
- bt[i_bt++] = bench_time.elapsed();
-#endif
// plot the legend now if its in the background
if (!Legend->front()) {
Legend->draw(&Curves, p, RelWinRegion,
@@ -2492,6 +2483,15 @@
bt_label[i_bt] = "Plot Curves";
bt[i_bt++] = bench_time.elapsed();
#endif
+// must plot grid lines before axes
+ plotGridLines(p, tpx.tick, xleft_bdr_px, xright_bdr_px, x_orig_px, xtick_px,
+ xtick_len_px, x_px, tpy.tick, ytop_bdr_px, ybot_bdr_px, y_orig_px,
+ ytick_px, ytick_len_px, y_px);
+
+#ifdef BENCHMARK
+ bt_label[i_bt] = "Plot Grid Lines";
+ bt[i_bt++] = bench_time.elapsed();
+#endif
p.setPen(QPen(_foregroundColor, penWidth));
plotAxes(p, RelPlotRegion,
tpx, xleft_bdr_px, xright_bdr_px, x_orig_px, xtick_px, xtick_len_px, x_px,
More information about the Kst
mailing list