Skip to content

Commit

Permalink
Rename d to dim
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Sep 16, 2021
1 parent fdb393d commit f925fcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import GLMakie
X = rand(100, 5)

# 3D biplot with named axes
biplot(X, d = 3, axesnames = ["CO₂","O₂","N₂","S","Cu"])
biplot(X, dim = 3, axesnames = ["CO₂","O₂","N₂","S","Cu"])
```

![biplot](docs/biplot.png)
Expand Down
10 changes: 5 additions & 5 deletions src/Biplots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Biplot of design matrix `X` with various options:
# Biplot attributes
* `d` - number of dimensions `d{2,3}`
* `α` - shape parameter `α[0,1]`
* `α` - shape parameter `α[0,1]` (default to `1`)
* `dim` - number of dimensions `dim{2,3}` (default to `2`)
# Aesthetics attributes
Expand All @@ -38,8 +38,8 @@ See https://en.wikipedia.org/wiki/Biplot.
@Makie.recipe(Biplot, X) do scene
Makie.Attributes(;
# biplot attributes
d = 2,
α = 1.0,
α = 1.0,
dim = 2,

# aesthetic attributes
axesbody = nothing,
Expand All @@ -54,8 +54,8 @@ end
function Makie.plot!(plot::Biplot{<:Tuple{AbstractMatrix}})
# retrieve parameters
X = plot[:X][]
d = plot[:d][]
α = plot[][]
d = plot[:dim][]

# retrieve options
axesbody = plot[:axesbody][]
Expand Down

2 comments on commit f925fcb

@juliohm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/45011

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" f925fcbff64357fcc310f17a302513b96a1e47f4
git push origin v0.1.0

Please sign in to comment.