Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed May 3, 2020
1 parent 1126d96 commit 1bce779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/colormap-tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
var maps = Object.keys( colormaps );

MathCell( id, [ { type: 'slider', max: maps.length - 1, default: 1, step: 1,
name: 'n', label: 'n' } ] );
name: 'n', label: 'Index:' } ] );

parent.update = function( id ) {

Expand All @@ -34,7 +34,7 @@
plot( x => f(x).g, [0,1], { color: 'green' } ),
plot( x => f(x).b, [0,1], { color: 'blue' } ) ];

var config = { type: 'svg', axesLabels: [ '', maps[n] ] };
var config = { type: 'svg', axesLabels: [ '', maps[n] ], includeOrigin: true };

evaluate( id, data, config );

Expand Down

0 comments on commit 1bce779

Please sign in to comment.