Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

github: JuliaPlots
open_collective: plotsjl

4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
branches: [master]

concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

Expand All @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest

- name: Ubuntu TESTCMD
run: echo "TESTCMD=xvfb-run --auto-servernum julia" >> $GITHUB_ENV
- name: Install Plots dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- os: ubuntu-latest
experimental: true
version: 'pre' # upcoming julia version (`alpha`, `beta` or `rc`)

steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: codespell

on: [pull_request]

concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types: [published]
pull_request:

concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '*'
pull_request:

concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

Expand Down
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
# - id: check-added-large-files
- repo: 'https://github.com/fredrikekre/runic-pre-commit'
rev: v2.0.1
hooks:
- id: runic
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@
},
{
"name": "Syver Døving Agdestein",
"orcid": "0000-0002-1589-2916",
"orcid": "0000-0002-1589-2916",
"type": "Other"
},
{
Expand Down
1 change: 0 additions & 1 deletion CITATION.bib
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ @article{PlotsJL
year = {2023},
copyright = {Creative Commons Attribution 4.0 International}
}

2 changes: 1 addition & 1 deletion GraphRecipes/src/trees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end

d = Dict(:a => 2,:d => Dict(:b => 4,:c => "Hello"),:e => 5.0)

plot(TreePlot(d))
plot(TreePlot(d))
````
"""
struct TreePlot{T}
Expand Down
6 changes: 3 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- deprecated backends `pgfplots` and `pyplot` removed
- deprecated keyword `orientation` removed
- backends are extensions now so the backend code must be explicitly loaded using `import` with the backend package, e.g.
- backends are extensions now so the backend code must be explicitly loaded using `import` with the backend package, e.g.
```julia
using Plots
import GR # loads backend code
Expand All @@ -18,9 +18,9 @@
- `Shape`, which is now `shape`
- The default `label` is now `:none`, use `:auto` to restore the previous behaviour
- UnitfulExt changes:
- The `P_str` macro is no longer provided as API. The intended goal was simply to not put
- The `P_str` macro is no longer provided as API. The intended goal was simply to not put
units on axis labels which were "protected strings". To achieve this now, pass `unitformat=:nounit`.
- The axis option `unitformat=:none`, `unitformat=nothing`, and `unitformat=false` previously
- The axis option `unitformat=:none`, `unitformat=nothing`, and `unitformat=false` previously
printed the axis guide as `string(label, " ", unit)`. That behavior is now moved to `unitformat=:space`,
and `:none`, `nothing`, and `false` print the axis guide without units.

Expand Down
8 changes: 4 additions & 4 deletions PlotThemes/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
The PlotThemes.jl package is licensed under the MIT "Expat" License:

> Copyright (c) 2016: Patrick Kofod Mogensen.
>
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
>
>
2 changes: 1 addition & 1 deletion PlotsBase/ext/UnitfulExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ end

#=======================================
Label string containing unit information
Used only for colorbars, etc., which don't
Used only for colorbars, etc., which don't
have a better place for storing units
=======================================#

Expand Down
6 changes: 3 additions & 3 deletions PlotsBase/src/animation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Example:
This macro supports additional parameters, that may be added after the main loop body.
- Add `fps=n` with positive Integer n, to specify the desired frames per second.
- Add `every n` with positive Integer n, to take only one frame every nth iteration.
- Add `when <cond>` where `<cond>` is an Expression resulting in a Boolean, to take a
- Add `when <cond>` where `<cond>` is an Expression resulting in a Boolean, to take a
frame only when `<cond>` returns `true`. Is incompatible with `every`.
"""
macro gif(forloop::Expr, args...)
Expand All @@ -299,7 +299,7 @@ Example:
This macro supports additional parameters, that may be added after the main loop body.
- Add `fps=n` with positive Integer n, to specify the desired frames per second.
- Add `every n` with positive Integer n, to take only one frame every nth iteration.
- Add `when <cond>` where `<cond>` is an Expression resulting in a Boolean, to take a
- Add `when <cond>` where `<cond>` is an Expression resulting in a Boolean, to take a
frame only when `<cond>` returns `true`. Is incompatible with `every`.
"""
macro apng(forloop::Expr, args...)
Expand All @@ -320,7 +320,7 @@ gif(anim)
```
This macro supports additional parameters, that may be added after the main loop body.
- Add `every n` with positive Integer n, to take only one frame every nth iteration.
- Add `when <cond>` where `<cond>` is an Expression resulting in a Boolean, to take a
- Add `when <cond>` where `<cond>` is an Expression resulting in a Boolean, to take a
frame only when `<cond>` returns `true`. Is incompatible with `every`.
"""
macro animate(forloop::Expr, args...)
Expand Down
2 changes: 1 addition & 1 deletion PlotsBase/src/shorthands.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ julia> scatter([(1,4),(2,5),(3,6)])
bar!(x,y)

Make a bar plot of `y` vs `x`.
If `y` is a named tuple the keys are used as ticklabels.
If `y` is a named tuple the keys are used as ticklabels.

# Keyword arguments
- $(_document_argument(:bar_position))
Expand Down
10 changes: 5 additions & 5 deletions StatsPlots/src/corrplot.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
corrplot

This plot type shows the correlation among input variables.
This plot type shows the correlation among input variables.
A correlation plot may be produced by a matrix.


Expand All @@ -12,11 +12,11 @@ using the [`@df`](@ref) macro like so:
@df iris corrplot([:SepalLength :SepalWidth :PetalLength :PetalWidth])
```

The marker color in scatter plots reveals the degree of correlation.
The marker color in scatter plots reveals the degree of correlation.
Pass the desired colorgradient to `markercolor`.

With the default gradient positive correlations are blue, neutral are yellow
and negative are red. In the 2d-histograms, the color gradient shows the frequency
With the default gradient positive correlations are blue, neutral are yellow
and negative are red. In the 2d-histograms, the color gradient shows the frequency
of points in that bin (as usual, controlled by `seriescolor`).
"""
@userplot CorrPlot
Expand All @@ -26,7 +26,7 @@ recipetype(::Val{:corrplot}, args...) = CorrPlot(args)
"""
to_corrplot_matrix(mat)

Transforms the input into a correlation plot matrix.
Transforms the input into a correlation plot matrix.
Meant to be overloaded by other types!
"""
to_corrplot_matrix(x) = x
Expand Down
2 changes: 1 addition & 1 deletion StatsPlots/src/errorline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# StatsPlots.errorline(x, y, arg):
Function for parsing inputs to easily make a [`ribbons`] (https://ggplot2.tidyverse.org/reference/geom_ribbon.html),
stick errorbar (https://www.mathworks.com/help/matlab/ref/errorbar.html), or plume
(https://stackoverflow.com/questions/65510619/how-to-prepare-my-data-for-plume-plots) plot while allowing
(https://stackoverflow.com/questions/65510619/how-to-prepare-my-data-for-plume-plots) plot while allowing
for easily controlling error type and NaN handling.

# Inputs: default values are indicated with *s
Expand Down
2 changes: 1 addition & 1 deletion docs/src/UnitfulExt/unitfulext.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
`Plots` provides `Unitful` recipes for plotting figures when using data with [Unitful.jl](https://github.com/PainterQubits/Unitful.jl) units.

!!! note
Since julia `1.9`, the module formerly known as `UnitfulRecipes` has been moved to a weak dependency called `UnitfulExt`.
Since julia `1.9`, the module formerly known as `UnitfulRecipes` has been moved to a weak dependency called `UnitfulExt`.

---

Expand Down
2 changes: 0 additions & 2 deletions docs/src/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ PlotsBase.reset_defaults()
```

### [Animations](@id animations)

Animations are created in 3 steps:

- Initialize an `Animation` object.
Expand All @@ -17,7 +16,6 @@ Animations are created in 3 steps:
---

### Convenience macros

There are two macros for varying levels of convenience in creating animations: `@animate` and `@gif`. The main difference is that `@animate` will return an `Animation` object for later processing, and `@gif` will create an animated gif file (and display it when returned to an IJulia cell).

Use `@gif` for simple, one-off animations that you want to view immediately. Use `@animate` for anything more complex. Constructing `Animation` objects can be done when you need full control of the life-cycle of the animation (usually unnecessary though).
Expand Down
9 changes: 0 additions & 9 deletions docs/src/attributes.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@

# [Attributes](@id attributes)

```@setup attr
using Plots
```

### Introduction to Attributes

In Plots, input data is passed positionally (for example, the `y` in `plot(y)`), and attributes are passed as keywords (for example, `plot(y, color = :blue)`).
Most of the information on this page is available from your Julia REPL.
After one executes, `using Plots` in the REPL, one can use the function `plotattr()` to print a list of all attributes for either series, plots, subplots, or axes.
Expand All @@ -32,7 +30,6 @@ plotattr("size")
---

### [Aliases](@id aliases)

Keywords can take a range of values through the **alias mechanic**. For example, `plot(y, color = :blue)` is really interpreted as `plot(y, seriescolor = :blue)`. Each attribute has a number of aliases (see the charts below), which are available to avoid the pain of constantly looking up plotting API documentation because you forgot the argument name. `c`, `color`, and `seriescolor` all mean the same thing, and in fact those are eventually converted into the more precise attributes `linecolor`, `markercolor`, `markerstrokecolor`, and `fillcolor` (which you can then override if desired).


Expand All @@ -42,12 +39,9 @@ Keywords can take a range of values through the **alias mechanic**. For example
---

### [Magic Arguments](@id magic-arguments)


Some arguments encompass smart shorthands for setting many related arguments at the same time. Plots uses type checking and multiple dispatch to smartly "figure out" which values apply to which argument. Pass in a tuple of values. Single values will be first wrapped in a tuple before processing.

##### axis (and xaxis/yaxis/zaxis)

Passing a tuple of settings to the `xaxis` argument will allow the quick definition
of `xlabel`, `xlims`, `xticks`, `xscale`, `xflip`, and `xtickfont`. The following are equivalent:

Expand Down Expand Up @@ -75,7 +69,6 @@ yticks!([-1:1:1;], ["min", "zero", "max"])
```

##### line

Set attributes corresponding to a series line. Aliases: `l`. The following are equivalent:

```julia
Expand All @@ -92,7 +85,6 @@ plot(y,
```

##### fill

Set attributes corresponding to a series fill area. Aliases: `f`, `area`. The following are equivalent:

```julia
Expand All @@ -106,7 +98,6 @@ plot(y,
```

##### marker

Set attributes corresponding to a series marker. Aliases: `m`, `mark`. The following are equivalent:

```julia
Expand Down
Loading
Loading