Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestions #1

Open
banisafar opened this issue May 24, 2017 · 0 comments
Open

suggestions #1

banisafar opened this issue May 24, 2017 · 0 comments

Comments

@banisafar
Copy link

  1. The section of Matplotlib does not contain a section 2.1 and 2.3 - jumps to 2.3

  2. In the histogram section - "First, we'll generate the data to plot. We're going to make a normal distribution with mean 5 and standard deviation 3 for 1000 points."

  3. Perhaps adding graphing multiple graphs with matplotlib

When we run this code, we see that we can show both the sine and cosine function in one graph.
X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C,S = np.cos(X), np.sin(X)
plt.plot(X,C, "r")
plt.plot(X,S, "b")
plt.show()

With subplot you can arrange plots in a regular grid. The code below shows the cosine function on top and the sine function on the bottom.
plt.subplot(2, 1, 1)
plt.plot(X,C, "r")
plt.subplot(2, 1, 2)
plt.plot(X,S, "b")
plt.show()

  1. Section 4 for the ggplot, state that this is based on R's gglot2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant