#366 Custom oversampling in canvas

open
nobody
None
5
2013-08-07
2013-06-15
Thomas Perschak
No

When zooming into canvas plots the resolution is sometimes limited.
See here: https://groups.google.com/forum/?fromgroups#!topic/comp.graphics.apps.gnuplot/M2ZOD445uWg

Dots appear on the same x position because the oversampling rate is to small for my application.
So I recompiled gnuplot (ubuntu precise) with an oversampling rate of 10000 to solve my problem.

From file canvas.trm:

define CANVAS_OVERSAMPLE 10000.

Having a parameter to set this from command line would be great.

thx

Discussion

  • Ethan Merritt
    Ethan Merritt
    2013-08-07

    This is a reasonable idea, but implementing it would be more work than you may think. The oversampling constant is currently hard-wired into the javascript code associated with mousing. If we make it a parameter to "set term", we also have to rewrite the javascript support routines to look for the current value and use it for all mouse operations. Certainly possible, but a bit tedious and it would introduce a version-dependence for the javascript routines.

    Maybe for version 5