Skip to content

Commit

Permalink
Fix interlinking errors
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Feb 16, 2024
1 parent cd2e279 commit 9d97ca8
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 35 deletions.
1 change: 0 additions & 1 deletion doc/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ filters:
- interlinks

interlinks:
fast: true
sources:
python:
url: https://docs.python.org/3/
Expand Down
4 changes: 4 additions & 0 deletions doc/_quartodoc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
interlinks:
fast: true

quartodoc:
dir: reference
title: API Reference
Expand All @@ -13,6 +16,7 @@ quartodoc:
desc: ""
contents:
- name: ggplot
members: [__add__, __iadd__, show, draw, save, save_helper]
- qplot
- watermark
- name: layer
Expand Down
61 changes: 30 additions & 31 deletions doc/changelog.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: Changelog
- Requires python >= 3.9

- Using the `print` or `repr` functions to draw and show the plot has
been deprecated. Use `plot.show()`.
been deprecated. Use [ggplot.show()](`plotnine.ggplot.show`).

- The name of the calculated aesthetic of
[](:class:`~plotnine.stat_function`) changed from `y` to `fx`.
Expand All @@ -28,7 +28,7 @@ title: Changelog
This will happen even if the backend is set to an interactive one.

If you set the backend to an interactive one, use
[](:class:`~plotnine.ggplot.show`) to draw the plot.
[](:meth:`~plotnine.ggplot.show`) to draw the plot.

- The default horizontal alignment for the plot title is center if it
there is no subtitle. When there is a subtitle, the default is to have
Expand Down Expand Up @@ -104,8 +104,8 @@ title: Changelog
accept lists/tuples to set the values on individual text objects.
({{< issue 724 >}})

- Gained the option [](:attr:`~plotnine.options.figure_format`) to set the format
of the inline figures in an interactive session. e.g.
- Gained the option [](:attr:`~plotnine.options.figure_format`) to set
the format of the inline figures in an interactive session. e.g.

```python
from plotnine.options import set_option
Expand Down Expand Up @@ -157,7 +157,7 @@ title: Changelog
### Bug Fixes

- Fixed handling of minor breaks in
[](:class:`~plotnine.scale_continuous.scale_continuous`)
[](:class:`~plotnine.scales.scale_continuous.scale_continuous`)
to accept numpy arrays and when the scale has a transform, that the
minor breaks are supplied in user space and not transform space. Just
like the major breaks. ({{< issue 685 >}})
Expand Down Expand Up @@ -514,7 +514,7 @@ not exist, got no description. This release is fixes error.
- Added [](:class:`~plotnine.geom_raster`).

- `geoms` gained new parameter `raster` for the
[](:class:`~plotnine.layer.Layers`). You can use it to rasterize any layer
[](:class:`~plotnine.layer.layer`). You can use it to rasterize any layer
when the resulting plot is of vector format e.g. `pdf`.

- Using the `space` parameter, [](:class:`~plotnine.facet_grid`)
Expand Down Expand Up @@ -582,10 +582,10 @@ not exist, got no description. This release is fixes error.
- Fixed issue where a plot has no data and the geoms have no data,
but the mappings are valid. ({{< issue 404 >}})

- Fixed `preserve='single'` in [](:class:`plotnine.position_dodge`)
and [](:class:`plotnine.position_dodge2`) to work for geoms that
- Fixed `preserve='single'` in [](:class:`~plotnine.position_dodge`)
and [](:class:`~plotnine.position_dodge2`) to work for geoms that
only have `x` aesthetic and not `xmin` and `xmax`
e.g [](:class:`plotnine.geom_text`).
e.g [](:class:`~plotnine.geom_text`).

- Fix regression in `v0.7.0` where plots with a colorbar
would fail if using [](:class:`~plotnine.theme_matplotlib`).
Expand All @@ -605,10 +605,10 @@ not exist, got no description. This release is fixes error.
[](:class:`~plotnine.stat_sina`). These stats can now work with groups
that have a single unique value.

- Changed [](:class:`plotnine.scale_colour_continuous`) to refer to the same
scale as [](:class:`plotnine.scale_color_continuous`).
- Changed `scale_colour_continuous` to refer to the same
scale as [](:class:`~plotnine.scale_color_continuous`).

- Changed [](:class:`plotnine.scale_color_cmap`) so the parameter
- Changed [](:class:`~plotnine.scale_color_cmap`) so the parameter
`cmap_name` refers to the name of the color palette and `name` refers
to the name of the scale. ({{< issue 371 >}})

Expand All @@ -628,11 +628,11 @@ not exist, got no description. This release is fixes error.
transform of a specialised scale. It mostly affected the *timedelta*
scale.

- Fixed [](:class:`plotnine.geom_violin`) and other geoms when used
- Fixed [](:class:`~plotnine.geom_violin`) and other geoms when used
with `position='dodge'` not to crash when if a layer has an empty
group of data.

- Fixed bug in [](:class:`plotnine.geom_path`) for some cases when groups
- Fixed bug in [](:class:`~plotnine.geom_path`) for some cases when groups
had less than 2 points. ({{< issue 319 >}})

- Fixed all stats that compute kernel density estimates to work when all
Expand All @@ -645,19 +645,19 @@ not exist, got no description. This release is fixes error.
than those present in the data. ({{< issue 342 >}})

- Fixed issue with using custom tuple linetypes~ with
[](:class:`plotnine.scale_linetype_manual`). ({{< issue 352 >}})
[](:class:`~plotnine.scale_linetype_manual`). ({{< issue 352 >}})

- Fixed [](:class:`plotnine.geom_map`) to work with facets. ({{< issue 359 >}})
- Fixed [](:class:`~plotnine.geom_map`) to work with facets. ({{< issue 359 >}})

- Fixed [](:class:`plotnine.position_jitterdodge`) to work when `color` is
- Fixed [](:class:`~plotnine.position_jitterdodge`) to work when `color` is
used as an aesthetic. ({{< issue 372 >}})

- Fixed [](:class:`plotnine.geom_qq`) to work with facets. ({{< issue 379 >}})
- Fixed [](:class:`~plotnine.geom_qq`) to work with facets. ({{< issue 379 >}})

- Fixed skewed head in [](:class:`plotnine.arrow`) when drawn on
- Fixed skewed head in [](:class:`~plotnine.arrow`) when drawn on
facetted plot. ({{< issue 388 >}})

- Fixed issue with [](:class:`plotnine.stat_density`) where weights could
- Fixed issue with [](:class:`~plotnine.stat_density`) where weights could
not be used with a gaussian model. ({{< issue 392 >}})

- Fixed bug where [](:class:`~plotnine.guide_colorbar`) width and height
Expand All @@ -682,7 +682,7 @@ not exist, got no description. This release is fixes error.

### API Changes

- The `draw` parameter of [](:class:`plotnine.geom_map`) has been removed.
- The `draw` parameter of [](:class:`~plotnine.geom_map`) has been removed.
Shapefiles should contain only one type of geometry and that is the geometry
that is drawn.

Expand Down Expand Up @@ -873,7 +873,7 @@ not exist, got no description. This release is fixes error.
[](:class:`~plotnine.stat_qq_line`), for lines through Q-Q plots.

- Added [](:class:`~plotnine.geom_density_2d`) and
[](:class:`~plotnine.geom_stat_2d`).
[](:class:`~plotnine.stat_density_2d`).

- Added [](:class:`~plotnine.stat_ellipse`).

Expand Down Expand Up @@ -959,10 +959,10 @@ not exist, got no description. This release is fixes error.
`legend_fill_ratio` that control the area of the legend that is filled
to indicate confidence intervals. ({{< issue 32 >}})

- [](:meth:`plotnine.ggplot.save`) gained an extra parameter `verbose`.
- [](:meth:`~plotnine.ggplot.save`) gained an extra parameter `verbose`.
It no longer guesses when to print information and when not to.

- [](:meth:`plotnine.ggplot.draw`) gained an extra parameter `return_ggplot`.
- [](:meth:`~plotnine.ggplot.draw`) gained an extra parameter `return_ggplot`.

- If the `minor_breaks` parameter of scales is a callable, it now
expects one argument, the `limits`. Previously it accepted
Expand Down Expand Up @@ -992,9 +992,9 @@ not exist, got no description. This release is fixes error.
xlim(None, 100)
```

You can also use [](:func:`~plotnine.scales.expand_limits`)
You can also use [](:func:`~plotnine.expand_limits`)

- Low and high [](:class:`~plotnine.scales.scale`) limits can now be expanded
- Low and high [](:class:`~plotnine.scales.scale.scale`) limits can now be expanded
separately with different factors multiplicative and additive factors.

- The layer parameter `show_legend` can now accept a `dict` for finer
Expand Down Expand Up @@ -1025,7 +1025,7 @@ not exist, got no description. This release is fixes error.
- You can now use a `dict` (with manual scales) to map data values to
aesthetics. ({{< issue 169 >}})

- You can now specify infinite coordinates with [](:class:`plotnine.geom_rect`).
- You can now specify infinite coordinates with [](:class:`~plotnine.geom_rect`).
({{< issue 166 >}})

### Bug Fixes
Expand All @@ -1043,7 +1043,7 @@ not exist, got no description. This release is fixes error.
when passed as classes (e.g. `stat_smooth(geom=geom_point)`{.py}, would
fail.

- Fixed bug in [](:meth:`plotnine.ggplot.save`) where specifying the `width`
- Fixed bug in [](:meth:`~plotnine.ggplot.save`) where specifying the `width`
and `height` would mess up the `strip_text` and `spacing` for the
facetted plots. ({{< issue 44 >}}).

Expand Down Expand Up @@ -1094,8 +1094,7 @@ not exist, got no description. This release is fixes error.
- Fixed bug in [](:class:`~plotnine.scale_x_discrete`) and
[](:class:`~plotnine.scale_y_discrete`) where if they were
instantiated with parameter `limits` that is either a numpy
array or a pandas series, plotting would fail with a
[](:class:`ValueError`).
array or a pandas series, plotting would fail with a `ValueError`.

- Fixed exceptions when using [](:func:`pandas.pivot_table`) for Pandas v0.20.0.
The API was [fixed](http://pandas.pydata.org/pandas-docs/version/0.20/whatsnew.html#pivot-table-always-returns-a-dataframe).
Expand All @@ -1111,7 +1110,7 @@ not exist, got no description. This release is fixes error.
is what matplotlib users expect. The previous names `hjust` and
`vjust` are silently accepted.

- [](:class:`~plotnine.layer.Layers`) can now be used to bundle up `geoms`
- `plotnine.layer.Layers` can now be used to bundle up `geoms`
and `stats`. This makes it easy to reuse `geoms` and `stats` or
organise them in sensible bundles when making complex plots.

Expand Down
2 changes: 1 addition & 1 deletion plotnine/themes/theme_dark.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class theme_dark(theme_gray):
"""
The dark cousin of [](`~plotnine.themes.theme_light`)
The dark cousin of [](`~plotnine.themes.theme_light.theme_light`)
It has similar line sizes but a dark background. Useful to
make thin colored lines pop out.
Expand Down
2 changes: 1 addition & 1 deletion plotnine/themes/theme_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class theme_light(theme_gray):
"""
A theme similar to [](`~plotnine.themes.theme_linedraw`)
A theme similar to [](`~plotnine.themes.theme_linedraw.theme_linedraw`)
Has light grey lines lines and axes to direct more attention
towards the data.
Expand Down
3 changes: 2 additions & 1 deletion plotnine/themes/theme_tufte.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class theme_tufte(theme_bw):
Theme based on Chapter 6 Data-Ink Maximization and Graphical
Design of Edward Tufte *The Visual Display of Quantitative
Information*. No border, no axis lines, no grids. This theme
works best in combination with [](`~plotnine.geoms.geom_rug`).
works best in combination with
[](`~plotnine.geoms.geom_rug.geom_rug`).
The default font family is set to "serif" as he uses serif
fonts for labels in _The Visual Display of Quantitative
Expand Down

0 comments on commit 9d97ca8

Please sign in to comment.