easydarkfigs-0.9


توضیحات

iPython Magic for Easy Dark/Light Figures
ویژگی مقدار
سیستم عامل -
نام فایل easydarkfigs-0.9
نام easydarkfigs
نسخه کتابخانه 0.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ben Cook
ایمیل نویسنده bacook17@gmail.com
آدرس صفحه اصلی https://github.com/bacook17/easydarkfigs/
آدرس اینترنتی https://pypi.org/project/easydarkfigs/
مجوز LICENSE
# easydarkfigs - iPython Magic for easy Dark/Light Matplotlib figures ## Installation `easydarkfigs` can be installed through [pip](https://pip.pypa.io/en/stable) via ``` pip install easydarkfigs ``` ## Usage Within an active iPython or Jupyter environment: ```python import easydarkfigs ``` Then, at the beginning of a cell where a Matplotlib figure is created: ```python %%savefig_dark_light figname.ext # Code # to # create # figure ``` This will save two versions of the created figure, using the `easy-dark` and `easy-light` Matplotlib style files included with this package. To customize these default styles, edit them in your [matplotlib directory](https://matplotlib.org/users/style_sheets.html). To change the default figure save location or styles to use: ```python %set_darkstyle new-style %set_darkfigdir my/dir/ %set_lightstyle new-style %set_lightfigdir my/dir/ ``` The code also makes a boolean variable `is_dark` available during execution, the value of which changes depending on which version of the plot is being created. ```python %%savefig_dark_light figname.ext if is_dark: title = 'This Is A Dark Plot' else: title = 'This Is A Light Plot' plt.title(title) ```


نیازمندی

مقدار نام
- matplotlib
- IPython


نحوه نصب


نصب پکیج whl easydarkfigs-0.9:

    pip install easydarkfigs-0.9.whl


نصب پکیج tar.gz easydarkfigs-0.9:

    pip install easydarkfigs-0.9.tar.gz