Hi all
Would like to know if it's possible to save the seaborn graphs which we have plotted to our desktop using plt.savefig?
Thank you.
QUANTCONNECT COMMUNITY
Hi all
Would like to know if it's possible to save the seaborn graphs which we have plotted to our desktop using plt.savefig?
Thank you.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Shile Wen
Hi Yin Yi,
One quick and easy way to save the figure is by right-clicking the plot in the notebook, then selecting the “save image as…” option. Alternatively, click “File” in the top bar, then hover “Download As”, then save as HTML or PDF, and when opened, you can save the images from the downloaded documents.
Best,
Shile Wen
Yin Yi
Hi Shile Wen
Thank you for your reply. Can I also ask if it's possible to change the seaborn plot font? If yes, can I know how i can go about doing it?
Tried
import matplotlib.font_manager
matplotlib.font_manager.findSystemFonts(fontpaths=None, fontext='ttf')
matplotlib.rcParams['font.family'] = 'SF Pro'
as well as
sns.set_style({'font': 'SF Pro'})
but it doesn't seem to work.
Thank you and appreciate your help here!
Yin Yi
Hi Shile Wen
Thank you for your reply. Please ignore my previous comment. Sorry for the confusion.
Can I ask if it is possible to install new fonts to matplotlib in QC? I understand that if i am to plot graphs through my local machine and want to use fonts that were not in matplotlib library, i can install the fonts on my local machine and then change the font. However, I am not sure how i can do so in QC.
Thank you.
Shile Wen
Hi Yin Yi,
We do not support the installation of new fonts to QuantConnect.
I've submitted this as a feature request to Github here.
Best,
Shile Wen
Yin Yi
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!