sidpy.viz.plot_utils.miscΒΆ

Utilities for generating static image and line plots of near-publishable quality

Created on Thu May 05 13:29:12 2016

@author: Suhas Somnath, Chris R. Smith

Functions

export_fig_data

Export the data of all plots in the figure fig to a plain text file.

get_plot_grid_size

Returns the number of rows and columns ideal for visualizing multiple (identical) plots within a single figure

make_scalar_mappable

Creates a scalar mappable object that can be used to create a colorbar for non-image (e.g. - line) plots.

reset_plot_params

Resets the plot parameters to matplotlib default values Adapted from: https://stackoverflow.com/questions/26413185/how-to-recover-matplotlib-defaults-after-setting-stylesheet

set_tick_font_size

Sets the font size of the ticks in the provided axes

use_nice_plot_params

Resets default plot parameters such as figure size, font sizes etc.

use_scientific_ticks

Makes the desired axis use scientific notation for its tick labels.