epezent / implot

Immediate Mode Plotting
MIT License
4.78k stars 531 forks source link

how to rotate an axes anticlockwise? #324

Closed spirit88888888 closed 2 years ago

spirit88888888 commented 2 years ago

I want to plot an axes whose x axis is vretical (up is positive) and y axis is horizontal ( left is positive), which can be obtained by just rotating a normal plot anticlockwise. so i wonder if there is a simple way to plot like this in Implot or Imgui? 图片

epezent commented 2 years ago

You can pass ImPlotAxisFlags_Invert to SetupAxis for your x-axis. X will point left and Y will point up.

spirit88888888 commented 2 years ago

Thanks a lot! It is very helpful for me. I can exchange input X and Y data and then use ImPlotAxisFlags_Invert to realize. I will try as you said.