Skip to content

Commit 43d80b8

Browse files
fix formatting (#326)
1 parent fd6f809 commit 43d80b8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/src/series_types/contour.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,9 @@ contour(x, y, z)
4646
Let's make this plot more presentable with the following attributes:
4747

4848
1. The number of levels can be changed with `levels`.
49-
2. Besides the title and axes labels, we can also add contour labels via the attribute `contour_labels`, which has the
50-
alias `clabels`. We'll use the LaTeXStrings.jl package to write the function expression in the title. (To install this
51-
package, type `]` and then `add LaTeXStrings` into the REPL.)
52-
3. The colormap can be changed using `seriescolor`, which has the alias `color`, or even `c`. The default colormap is
53-
`:inferno`, from matplotlib. A full list of colormaps can be found in the ColorSchemes section of the manual.
54-
4. The colorbar location can be changed with the attribute `colorbar`, alias `cbar`. We can remove it by setting
55-
`cbar=false`.
49+
2. Besides the title and axes labels, we can also add contour labels via the attribute `contour_labels`, which has the alias `clabels`. We'll use the LaTeXStrings.jl package to write the function expression in the title. (To install this package, type `]` and then `add LaTeXStrings` into the REPL.)
50+
3. The colormap can be changed using `seriescolor`, which has the alias `color`, or even `c`. The default colormap is `:inferno`, from matplotlib. A full list of colormaps can be found in the ColorSchemes section of the manual.
51+
4. The colorbar location can be changed with the attribute `colorbar`, alias `cbar`. We can remove it by setting `cbar=false`.
5652
5. The widths of the isocontours can be changed using `linewidth`, or `lw`.
5753

5854
Note that `levels`, `color`, and `contour_labels` need to be specified in `contour`.
@@ -128,7 +124,7 @@ and will require some manual tweaking. First, we define a function `h(x, y) = ex
128124
logarithm of. Then we adjust the `levels` and `colorbar_ticks` attributes.
129125

130126
The `colorbar_ticks` attribute can take in a tuple of two vectors `(tickvalues, ticklabels)`. Since `h(x, y)` varies
131-
from 10<sup>0</sup> to 10<sup>8</sup> over the prescribed domain, tickvalues will be a vector `tv = 0:8`. We can format
127+
from `10^0` to `10^8` over the prescribed domain, tickvalues will be a vector `tv = 0:8`. We can format
132128
the labels with superscripts by using LaTeXStrings again. Note that the string interpolation operator changes from `$`
133129
to `%$` when working within `L"..."` to avoid clashing with `$` as normally used in LaTeX.
134130

docs/src/series_types/histogram.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ p3 = stephist(x, title="Step")
9191
plot(p1, p2, p3, layout=(1, 3), legend=false)
9292
```
9393

94+
Note that the Y axis of the histogram scatter plot will not start from 0 by default.
95+
9496
## 2D Histograms
9597

9698
Two-dimensional histograms are accessed through the function `histogram2d` and its mutating variant `histogram2d!`.

0 commit comments

Comments
 (0)