/prefig

An awesome plotting object to make any plot poster or presentation ready in the colours of your choice!

Primary LanguagePythonApache License 2.0Apache-2.0

prefig

Version 1.0.0

An awesome plotting object to make any plot poster or presentation ready in the colours of your choice!

Install to your python packages library by cloning this repo to your machine then run:

    python setup.py install

NB: If you don't have permissions to access your site-packages folder you made need the sudo command - but be <href= http://www.techrepublic.com/blog/linux-and-open-source/setting-the-record-straight-on-sudo/>wary of this!

A class that can replace the plt.figure() matplotlib python plotting command to create poster and presentaiton ready plots instantly out of your existing plotting code. Plots will be initialised with a transparent background. The font colour and axes colour must be specified - e.g. 'white' for a poster with a black background. Colours are inverted if 'white' is specified as the colour. Size of fonts changed appropriately according to figure size specified.

    :axcol:
        The colour of the axes of the plot (optional). Default is 'black' or 'k'.
    
    :fontcol:
        The colour of the axes and tick labels of the plot (optional). Default is 'black' or 'k'.
    
    :figsize:
        tuple of integers (optional). (width, height) in inches. Default is (16,12), the size and aspect ratio of a presentation (PPT, keynote) slide
        
    :font: 
        font family (optional). Default from rc.font file. Can be specified within plot commands instead. 

Run the program test.py to see how the changing the class of the figure to Prefig() alters the simple error bar plot.

License

Apache 2.0