Good afternoon all,
One last matplotlib question for the group for today. On one of my GUI plots, I’m calling imshow on an array of data (to display it in the same way MATLAB’s imagesc command does). I’d like to add a second y-axis to the right side of the plot that is completely dependent on the values on the primary y-axis. Essentially, for each y-axis tick point, I’ll put the y-axis ‘value’ into a formula and then put the result on the second y-axis. I did this in MATLAB by essentially overlaying a second set of axes over the plot, but I haven’t found the exact way to do it with matplotlib yet. I’ve seen a few examples online, but they all use the second overlaid plot to actually plot new data - I wouldn’t be doing this.
Would I need to use the twinx (or twiny) function?
Are there examples of this on the web that I haven’t found that somebody could point me towards?