Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bio-IT Workshops
Intermediate Python
Commits
51cc6eff
Verified
Commit
51cc6eff
authored
Jul 20, 2020
by
Renato Alves
🌱
Browse files
Show corrected version of artifacts sine plot
parent
0b98a5e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
_episodes/03-plotting.md
View file @
51cc6eff
...
...
@@ -526,8 +526,7 @@ Given `plot(X, Y)` it then takes a pair of coordinates from both variables as wi
>
> > ## Solution
> >
> > Using only `4` samples the curve doesn't look as smooth as before.
x = np.linspace(0, 2, 4)
> > Using `samples = 4` the curve doesn't look as smooth as before:
> > ![simple-plot with few datapoints](../fig/my-simple-plot-jagged-curve.png)
> >
> > And a sine plot would look like:
...
...
@@ -549,10 +548,12 @@ x = np.linspace(0, 2, 4)
> > Notice also that as the values of `X` become larger,
> > the number of samples is not enough
> > and visual artifacts start to be noticeable in the `sine-cubic` plot.
> >
> > Using `samples = 1000` makes most of the artifacts disappear:
> > ![simple-sine plot without artifacts](../fig/my-sine-plot-more-samples.png)
> {: .solution }
{: .challenge }
### Histograms
~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment