You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit is an initial implementation for adding logarithmic plotting
axis.
This very much needs more testing!
The basic idea is, that everything stays the same, but PlotTransform
does the much needed coordinate transformation for us.
That is, unfortunatley not all of the story.
* In a lot of places, we need estimates of "how many pixels does 1 plot
space unit take" and the likes, either for overdraw reduction, or
generally to size things. PlotTransform has been modifed for that for
now, so this should work.
* While the normal grid spacer renders just fine, it will also casually
try to generate 100s of thousands of lines for a bigger range log
plot. So GridInput has been made aware if there is a log axis
present. The default spacer has also been modified to work initially.
* All of the PlotBound transformations within PlotTransform need to be
aware and handle the log scaling properly. This is done and works
well, but its a bit.. icky, for lack of a better word. If someone has
a better idea how to handle this, be my guest :D
* PlotPoint generation from generator functions has to become aware of
logarithmic plotting, otherwise the resolution of the plotted points
will suffer.
Especially the spacer generation is still kinda WIP; it is messy at best
right now. Especially for zooming in, it currently only adds lines on the
lower bound due to the way the generator function works right now.
I will address this in a follow up commit/--amend (or someone else will).
0 commit comments