-
How could I add the color bar (black circle in the picture) to my plots? I do not see any example with this legend, nor any reference in the Floris documentation. Regards, |
Beta Was this translation helpful? Give feedback.
Answered by
paulf81
Jun 21, 2021
Replies: 1 comment 1 reply
-
Hi! FLORIS is using matplotlib's pcolormesh to draw these in size the visualize_cut_plane function: The function returns the image handle you can use to add this colorbar. For example, changing example_00_open_and_vis_floris.py so that the last block of code looks like this:
Adds the color bar |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bayc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! FLORIS is using matplotlib's pcolormesh to draw these in size the visualize_cut_plane function:
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.pcolormesh.html
The function returns the image handle you can use to add this colorbar. For example, changing example_00_open_and_vis_floris.py so that the last block of code looks like this:
Adds the color bar