plotbox.iplot module

plotbox.iplot.plotly_date_frequency_plot(df=None, array=None, series=None, title=None, filename='plotly_date_frequency_plot_test', weekend_bool=True, weekend_height=20, xlabel=None, ylabel=None, vlines=None, hlines=None, xlim=None, ylim=None, **kwargs)

plotly_date_frequency_plot uses plotly to interactively plot a bar chart showing a date series or df[array] frequency Requires df, array str or series To write a permanent, linkable plot, change filename Optional weekend indicators with adjustable height

plotbox.iplot.plotly_plot(x=None, y=None, df=None, style='scatter', title=None, filename='plotly_plot_test', xlabel=None, ylabel=None, vlines=None, hlines=None, xlim=(None, None), ylim=(None, None), dropna=True, dateextractX=False, dateextractY=False, figsize=(16, 9), plotlyplot=True, saveAs=None, **kwargs)

Interactively plots a series or two in plotly.

Must set unique title or filename for plot to exist semi-permanently, else overwritten on the next use of function.

Parameters:
  • x (array, series, or list OR column name in df) – numpy array, pandas series, or list of primary values to plot
  • y (array, series, or list OR column name in df) – numpy array, pandas series, or list of secondary values to plot
  • df (pandas DataFrame, optional) – if given, uses dataframe to create x and y arrays using x and y column names given
  • style (string) – argument to choose style of plot. currently implemented dist, hist, line, and scatter
  • xlabel, ylabel (title,) – labels of plot. if filename not given, filename = title
  • hlines (vlines,) – list of x/y points to make vertical/horizontal lines in the plot
  • ylim (xlim,) – horizontal/vertical boundries of the figure
  • dropna (boolean, optional (default is True)) – drop nans from series
  • dateextractY (dateextractX,) – try to convert x and y to datetimes using utils.date.extract_date
  • plotlyplot (boolean, optional (default is True)) – set to False for prototyping
  • filename (string, optional) – file name on server for plotly plot. unique label ensures plot will not be overwritten
  • saveAs (string (default is None)) – If given, save the figure using saveAs as the file name.
  • kwargs (dict) – additional keyworded arguments passed to plotting functions
Returns:

iframe

Return type:

iframe

Notes

ToDo - Fix autolabeling. broked it when fixing dates..