cufflinks.plotlytools module¶
-
cufflinks.plotlytools.
get_items_as_list
(items, keys, items_names='styles')[source]¶ Returns a dict with an item per key
- items : string, list or dict
- Items (ie line styles)
- keys: list
- List of keys
- items_names : string
- Name of items
-
cufflinks.plotlytools.
iplot
(figure, validate=True, sharing=None, filename='', online=None, asImage=False, asUrl=False, asPlot=False, dimensions=None, display_image=True, **kwargs)[source]¶ Plots a figure in IPython, creates an HTML or generates an Image
- figure : figure
- Plotly figure to be charted
- validate : bool
- If True then all values are validated before it is charted
- sharing : string
- Sets the sharing level permission
- public - anyone can see this chart private - only you can see this chart secret - only people with the link can see the chart
- filename : string
- Name to be used to save the file in the server, or as an image
- online : bool
- If True then the chart/image is rendered on the server even when running in offline mode.
- asImage : bool
If True it returns an Image (png) In ONLINE mode:
- Image file is saved in the working directory
- Accepts:
- filename dimensions scale display_image
- In OFFLINE mode:
Image file is downloaded (downloads folder) and a regular plotly chart is displayed in Jupyter
- Accepts:
- filename dimensions
- asUrl : bool
- If True the chart url/path is returned. No chart is displayed.
- If Online : the URL is returned If Offline : the local path is returned
- asPlot : bool
- If True the chart opens in browser
- dimensions : tuple(int,int)
- Dimensions for image
- (width,height)
- display_image : bool
- If true, then the image is displayed after it has been saved Requires Jupyter Notebook Only valid when asImage=True
- legend : bool
- If False then the legend will not be shown
- scale : integer
- Increase the resolution of the image by scale amount Only valid when asImage=True