aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remote_plot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_plot.c b/remote_plot.c
index 99cb4b9..f6dc18e 100644
--- a/remote_plot.c
+++ b/remote_plot.c
@@ -583,8 +583,8 @@ static void draw_function (GtkDrawingArea *area,
plspal1("cmap1_gray.pal", 1);
// Initialize plplot
- if(plot_counts>3)
- plstar(3,(plot_counts+2)/3);
+ if(plot_counts>2)
+ plstar(2,(plot_counts+1)/2);
else
plstar(1,plot_counts);
pl_cmd( PLESC_DEVINIT, cr );