pyg-plot 0.0.1

Last updated:

0 purchases

pyg-plot 0.0.1 Image
pyg-plot 0.0.1 Images
Add to Cart

Description:

pygplot 0.0.1

# pyg - A graphics classBy Alex Hagen``pyg`` started as a simple wrapper around ``matplotlib`` to help me keep my style the same in plotting, but now it's expanded to a full graphics suite. If you get bored reading through the first two examples, skip to the bottom. Those examples are a bit cooler.## InstallationFor ``pyg``, we need quite a few requirements. Installation right now is pretty manual, but this should do the trick on unix systems:```bashpip install numpy scipy matplotlib coloursmkdir ~/utilcd ~/utilgit clone https://github.com/alexhagen/pyg -b master pygsudo echo "export PYTHONPATH=You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode\vec{c} = \left( 0, 0, 0 \right)You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode2\sigma′)plot.addhmeasure(mun+sigman,mun−sigman,1.5,′middle2\sigma′)plot.xlabel(r′Grade(g)[\text{GPA Points}]′)plot.ylabel(r′Likelihood(PYou can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode\sin \left( \theta \right)′)plot.xlabel(′x−coordinate(x)[\unit{cm}]′)plot.ylabel(′y−coordinate(y)[\unit{cm}Double subscripts: use braces to clarifyDouble subscripts: use braces to clarify\sin \left( \theta \right)You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math modey_{1}You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math modey_{2}′)plot.markersoff()plot.xlabel(′xcoordinate(x)′)plot.ylabel(′ycoordinate(y_{1})′)plot.ylabel(′ycoordinate(y_{2})′,axes=plot.ax2)plot.legend(loc=3)plot.export(s′tatic/dual′,ratio=′silver′)plot.show(′Sinusoidswiththesamexaxis,ondifferentyaxes′)‘‘‘<divclass=′pygfigure′name=′[′Sinusoidswiththesamexaxisondifferentyaxes′]′style=′text−align:center;max−width:800px;margin−left:auto;margin−right:auto;′><imgstyle=′margin:auto;max−width:100<divstyle=′margin:auto;text−align:center;′class=′figurecaption′><b>Figure6:</b>Sinusoidswiththesamexaxis,ondifferentyYou can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math modey′)plot.markersoff()defpidiv(x):returnx/np.piplot.addxx(pidiv)plot.xlabel(′xcoordinate(x)[\unit{cm}]′)plot.xlabel(′xcoordinateintermsof\pi(x)[\unit{\pi}]′,axes=plot.ax2)plot.ylabel(′ycoordinate(y)[\unit{cm}]′)plot.export(s′tatic/dualx′,ratio=′silver′)plot.show(′Sinusoidintermsofradiansandintermsof\pi′)‘‘‘<divclass=′pygfigure′name=′[′Sinusoidintermsofradiansandintermsofpi′]′style=′text−align:center;max−width:800px;margin−left:auto;margin−right:auto;′><imgstyle=′margin:auto;max−width:100<divstyle=′margin:auto;text−align:center;′class=′figurecaption′><b>Figure7:</b>Sinusoidintermsofradiansandintermsof\pi$</div> </div>## Coming Features and implementation details- SVG import for illustrating on charts - SVG addition via post processing - only suitable for SVG export (https://stackoverflow.com/questions/31452451/importing-an-svg-file-a-matplotlib-figure)[https://stackoverflow.com/questions/31452451/importing-an-svg-file-a-matplotlib-figure] - SVG conversion to matplotlib via regexing (https://matplotlib.org/examples/showcase/firefox.html)[https://matplotlib.org/examples/showcase/firefox.html]```python```

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.