in reply to Re^3: 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?

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?
  • Comment on Re^4: Is it possible to create an interactive scale for palette in GNUplot?
  • Download Code

Replies are listed 'Best First'.
Re^5: Is it possible to create an interactive scale for palette in GNUplot?
by poj (Abbot) on Mar 05, 2016 at 16:36 UTC

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

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