Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots: Add title and axis titles; scatterplot option for logarithmic axes [FEATURE] (Request in QGIS) #9428

Open
qgis-bot opened this issue Nov 29, 2024 · 0 comments
Labels
3.42 QGIS 3.42 new features Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page.
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#59366
Author: @florianneukirchen
QGIS version: 3.42

Plots: Add title and axis titles; scatterplot option for logarithmic axes [FEATURE]

PR Description:

Description

New features and bugfixes for the plotting algorithms (in "Plots") to get more meaningful plots.

Title and axis titles

Add title and axis titles as optional parameters to the processing algorithms:

  • Vector layer Scatterplot
  • Vector layer Scatterplot3D
  • Barplot
  • Boxplot
    If axis titles are empty, the name of the field is used as axis title. If a single space is entered, the axis title is not shown (and the plot looks like before the changes).

Logarithmic axes in scatterplot

Optionally, in "Vector layer Scatterplot", allow x-axis and/or y-axis to be logarithmic.

Bugfixes

  • Boxplot: "Value field" type must be numeric
  • Vectorlayer Scatterplot3D: Output name "Scatterplot 3D" instead of "Histogram"

Screenshots

Vector layer Scatterplot, new version (with logarithmic axes, title, y-axis title; while x-axis title was not given and the field name is used)

screenshot-1

Vector layer Scatterplot, old version for comparison
screenshot-now

Documentation

For https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/plots.html

Section Bar Plot

New Parameters (Label | Name | Type | Description):

  • Title | TITLE | [string] Default: "" | Title of the plot
  • X-axis Title | XAXIS_TITLE | [string] Default: "" | X axis title, if empty, the name of the category field is used. With a single space, the axis title is not shown.
  • Y-axis Title | YAXIS_TITLE | [string] Default: "" | Y axis title, if empty, the name of the value field is used. With a single space, the axis title is not shown.

Section Box Plot

New Parameters (Label | Name | Type | Description):

  • Title | TITLE | [string] Default: "" | Title of the plot
  • X-axis Title | XAXIS_TITLE | [string] Default: "" | X axis title, if empty, the name of the category field is used. With a single space, the axis title is not shown.
  • Y-axis Title | YAXIS_TITLE | [string] Default: "" | Y axis title, if empty, the name of the value field is used. With a single space, the axis title is not shown.

Change to Parameter "Value Field": Type is now: [tablefield: numeric]

Section Vector layer scatterplot

New Parameters (Label | Name | Type | Description):

  • Title | TITLE | [string] Default: "" | Title of the plot
  • X-axis Title | XAXIS_TITLE | [string] Default: "" | X axis title, if empty, the field name of the x attribute is used. With a single space, the axis title is not shown.
  • Y-axis Title | YAXIS_TITLE | [string] Default: "" | Y axis title, if empty, the field name of the y attribute is used. With a single space, the axis title is not shown.
  • Use logarithmic scale for x-axis | XAXIS_LOG | [boolean] Default: False | Optionally use logarithmic x axis
  • Use logarithmic scale for y-axis | YAXIS_LOG | [boolean] Default: False | Optionally use logarithmic y axis

Section Vector layer scatterplot 3D

New Parameters (Label | Name | Type | Description):

  • Title | TITLE | [string] Default: "" | Title of the plot
  • X-axis Title | XAXIS_TITLE | [string] Default: "" | X axis title, if empty, the field name of the x attribute is used.
  • Y-axis Title | YAXIS_TITLE | [string] Default: "" | Y axis title, if empty, the field name of the y attribute is used.
  • Z-axis Title | ZAXIS_TITLE | [string] Default: "" | Z axis title, if empty, the field name of the y attribute is used.

Change to Outputs:
Label of "OUTPUT" is now "Scatterplot 3D", not "Histogram"

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.42 QGIS 3.42 new features label Nov 29, 2024
@github-actions github-actions bot added this to the QGIS 3.48 milestone Nov 29, 2024
@DelazJ DelazJ added the Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page. label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.42 QGIS 3.42 new features Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page.
Projects
None yet
Development

No branches or pull requests

2 participants