Skip to content

Commit

Permalink
MIssing matplotlibg functions
Browse files Browse the repository at this point in the history
  • Loading branch information
acbart committed Mar 14, 2022
1 parent fab6a11 commit ccf6809
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/ast/ast_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,36 @@ BlockMirrorTextToBlocks.prototype.MODULE_FUNCTION_SIGNATURES = {
message: 'plot histogram',
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'bar': {
returns: false,
simple: ['xs', 'heights', '*tick_label'],
message: 'plot bar chart',
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'plot': {
returns: false,
simple: ['values'],
message: 'plot line',
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'boxplot': {
returns: false,
simple: ['values'],
message: 'plot boxplot',
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'hlines': {
returns: false,
simple: ['y', 'xmin', 'xmax'],
message: 'plot horizontal line',
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'vlines': {
returns: false,
simple: ['x', 'ymin', 'ymax'],
message: 'plot vertical line',
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'scatter': {
returns: false,
simple: ['xs', 'ys'],
Expand All @@ -275,6 +299,18 @@ BlockMirrorTextToBlocks.prototype.MODULE_FUNCTION_SIGNATURES = {
simple: ['label'],
message: "make plot's y-axis label",
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'xticks': {
returns: false,
simple: ['xs', 'labels', '*rotation'],
message: "make x ticks",
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
},
'yticks': {
returns: false,
simple: ['ys', 'labels', '*rotation'],
message: "make y ticks",
colour: BlockMirrorTextToBlocks.COLOR.PLOTTING
}
}
};
Expand Down

0 comments on commit ccf6809

Please sign in to comment.