An interface based plotter
No. 184
Q: |
In the section called “Plotting functions” you
implemented a plotter hard coding the desired plot function e.g.
A better solution will separate the plotter's implementation from the desired plotting function. The idea is defining a corresponding interface:
This interface may be used by the plotter class as a
“placeholder” for the intended plot function.
Plotting e.g.
Plotting will then require an instance:
|
A: |
No template of mode='make' defined for element'para' The solution in addition contains a variant
|