Skip to content

Commit

Permalink
another try at GLMakie
Browse files Browse the repository at this point in the history
  • Loading branch information
tobydriscoll committed Sep 4, 2023
1 parent 8ce1c7c commit dfe20f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ComplexPlots = "1fd36721-02e5-4f31-ac70-029fcd7253d3"
ComplexRegions = "c64915e2-6c82-11e9-38e9-1f159a780463"
ComplexValues = "41a84b80-6cf2-11e9-379d-9df124847946"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
WGLMakie = "276b4fcb-3e11-5398-bf8b-a0c2d153d008"
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Vectors of points can be plotted on the surface of the Riemann sphere. The synta
Plots of complex functions can be made in the style of [Wegert and Semmler](http://arxiv.org/abs/1007.2295) using the `zplot` function. At each point in the complex domain, the hue is selected from a cyclic colormap using the phase of the function value, and the color value (similar to lightness) is chosen by the fractional part of the log of the function value's magnitude.

```@setup
using WGLMakie
using GLMakie
```

```@docs
Expand Down
4 changes: 2 additions & 2 deletions docs/src/makie.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Complex plane plots in `Plots`

```@setup makie
using WGLMakie # or use GLMakie
using GLMakie
update_theme!(linewidth=3, Axis=(autolimitaspect=1,))
```
The plots below are made using the defaults
Expand All @@ -14,7 +14,7 @@ update_theme!(linewidth=3, Axis=(autolimitaspect=1,))
A vector of complex-typed values will be interpreted as specifying points using the real and imaginary parts.

```@example makie
using ComplexPlots, WGLMakie # or GLMakie
using ComplexPlots, GLMakie
z = [complex(cospi(t), 0.4sinpi(t)) for t in (0:400)/200]
lines(z)
scatter!(1 ./ z, marker=:circle, markersize=8, color=:black)
Expand Down

0 comments on commit dfe20f6

Please sign in to comment.