You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/series_types/contour.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,9 @@ contour(x, y, z)
46
46
Let's make this plot more presentable with the following attributes:
47
47
48
48
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`.
56
52
5. The widths of the isocontours can be changed using `linewidth`, or `lw`.
57
53
58
54
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
128
124
logarithm of. Then we adjust the `levels` and `colorbar_ticks` attributes.
129
125
130
126
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
132
128
the labels with superscripts by using LaTeXStrings again. Note that the string interpolation operator changes from `$`
133
129
to `%$` when working within `L"..."` to avoid clashing with `$` as normally used in LaTeX.
0 commit comments