Closed zerothi closed 3 years ago
Thanks Nick, looks good to me!
Hi Nick! Thank you for the pull request and comments! Looks good to me too :-). I agree that it would probably be better if we eliminate the classes and build just functions instead... I will give it a thought!
This partially fixes something for #69
should hopefully work.
However, I think the problem is they way the
DOS(Plot)
class, and all the others are used. Basically all they do is in their__init__
routine, making them extremely static.To me the
DOS(Plot)
class could just as well be this:Basically all your
Plot
sub-classes only uses thePlot
class to hold the axes and figure, nothing more.This is a bit counter-intuitive of what a class should do, I think. I think this is what is causing the confusing in #69?
I don't know how you else want this to be done. One could for instance do a
HubbardPlot
that does something like this:or something (note, this isn't carefully thought through, and perhaps not the best way).
But this would force the plotting work to be done in a separate
plot
method that does the heavy lifting and allows re-use of the same axes.