Utilities functions for plots¶
This file is part of Embedded Voting.
-
embedded_voting.utils.plots.
create_3d_plot
(fig, position=None)[source]¶ Create the background for a 3D plot on the non-negative orthant.
Parameters: - fig – The matplotlib figure on which we are drawing.
- position – The position of the subplot on which we are drawing.
Returns: Return type: matplotlib ax
-
embedded_voting.utils.plots.
create_map_plot
(fig, image, position, title='')[source]¶ Create the background for a map plot.
Parameters: - fig (matplotlib figure) – The matplotlib figure on which we are drawing.
- image (np.ndarray) – The image to plot. Should be of size map_size, map_size.
- position (list) – The position of the subplot on which we are drawing.
- title (str) – Title of the plot.
Returns: Return type: matplotlib ax