Back

How to increase Notebook Plot Size

HI there,

If I do a simple plot as follows in notebook on Quantopian, it is about 3 times larger then when I do the same in notebook on QuantConnect.  Also the plot on Quantopian resizes with the browser.  So when I make the browser wider, the plot gets larger.  This does not happen with the plot on QuantConnect.  It is small, and stays small even when I make the browser wider.

Is there a way to get the same behaviour as Quantipian?  It is very useful as most people have large monitors in the present day.

import numpy as np
import pandas as pd

# This is a plotting library for pretty pictures.
import matplotlib.pyplot as plt

# Sample 100 points with a mean of 0 and an std of 1. This is a standard normal distribution.
X = np.random.normal(0, 1, 100)

plt.plot(X)

Also I have seem posts on the discussion where code is embedded in the post.  Where can I find instructions on how to do this?  I have looked in the documentation on the Research area and it is pretty sparce.

Actually I have just spotted the Attach Backtest button below, I am guessing this is how it has been done?

Is there a way to embed a notebook in a discussion post?

Update Backtest







0

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.


Update Backtest





0

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.


Loading...

This discussion is closed