in reply to Re^2: Is it possible to create an interactive scale for palette in GNUplot?
in thread Edited:Using Chart::Gnuplot to creat an interactive scale for palette?

$chart->set(cbrange => '[-120:120]');

See gnuplot page 181.

poj
  • Comment on Re^3: Is it possible to create an interactive scale for palette in GNUplot?
  • Download Code

Replies are listed 'Best First'.
Re^4: Is it possible to create an interactive scale for palette in GNUplot?
by Ppeoc (Beadle) on Mar 05, 2016 at 16:06 UTC
    Exactly what I was looking for. Thanks! I tried making it a variable based on the users input
    $chart->set(cbrange => '[$x:$y]');
    But it gives me an error "Column number Expected". Any ideas?

      Your variables won't be interpolated inside single quotes. Use doubles

      $chart->set(cbrange => "[$x:$y]");