Skip to content

How to plot with inverted Y axes #81

@jbcolme

Description

@jbcolme

I'm trying to plot some data using an inverted Y axis.
Since this is the most recent working version of wxMathplot that I found, I checked it out and currently everything works great except this.

This issue was first mentioned here long time ago: https://forums.wxwidgets.org/viewtopic.php?f=1&t=45412
I left a comment there. If I understand correctly, there are two issues:

  • get wxAutoBufferedPaintDC to also change the axis orientation. That's an issue in wxWidgets.
  • do the required changes in wxMathplot to handle that change of axis direction.

I can change the axis orientation in a simple example using wxPaintDC, but I can't just change the orientation in mathplot. It has no effect.

I'll try go over the code, but if anyone can point me to where I should look / what to modify, that would be great. I'm new to the library. I'd gladly do the work and make a pull request.

One hack could be to use a "custom made" mpScaleY. But that's just a temporary hack which I would prefer to avoid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions