No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Example == | |||
<pre> | <pre> | ||
{{#invoke:ColinTheCat/Plotter|Plot2D | {{#invoke:ColinTheCat/Plotter|Plot2D | ||
Line 7: | Line 9: | ||
|Plots= | |Plots= | ||
[ | [ | ||
{"Type": "function", "Function": "sin(x)", "Samples": 100} | {"Type": "function", "Function": "sin(x)", "Samples": 100, "Label": "sin"}, | ||
{"Type": "function", "Function": "cos(x)", "Samples": 100, "Label": "cos"}, | |||
{"Type": "function", "Function": "tan(x)", "Samples": 100, "Label": "tan"} | |||
] | ] | ||
}} | }} | ||
Line 19: | Line 23: | ||
|Plots= | |Plots= | ||
[ | [ | ||
{"Type": "function", "Function": "sin(x)", "Samples": 100, "Label": "sin"} | {"Type": "function", "Function": "sin(x)", "Samples": 100, "Label": "sin"}, | ||
{"Type": "function", "Function": "cos(x)", "Samples": 100, "Label": "cos"}, | |||
{"Type": "function", "Function": "tan(x)", "Samples": 100, "Label": "tan"} | |||
] | ] | ||
}} | }} |
Revision as of 04:09, 12 February 2024
Example
{{#invoke:ColinTheCat/Plotter|Plot2D |From=-0.2, -1.2 |To=2 * pi + 0.2, 1.2 |GridStep=0.5 * pi, 1 |LabelStepX=format("%.1f π", x/pi) |Plots= [ {"Type": "function", "Function": "sin(x)", "Samples": 100, "Label": "sin"}, {"Type": "function", "Function": "cos(x)", "Samples": 100, "Label": "cos"}, {"Type": "function", "Function": "tan(x)", "Samples": 100, "Label": "tan"} ] }}
sincostan