Skip to main content
fixed subject line
Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143

Vertically and HorizontallHorizontally align the labels in multi-column QGIS legends

added 601 characters in body
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't find a way to fix it. They are all defined as Subgroups but have also tried to define the Title as a group (menu on right click when in the legend definition view)

enter image description here

enter image description here

Related to this, I've found some icons aren't aligned. There is no xy offset set on it

enter image description here

The only way I can see to fix it is by splitting the legend into columns. Is there an easier way?

UPDATE based on answer from Corentin Lemaitre

Issue 2 (Horizontal) is fixed by changing the patch size. But I can't fix issue 1 (Vertical) alignment using spacing...

enter image description here

If I reset everything to Default, we still have the issue.

enter image description here

Then with layer title Hidden

enter image description here

And with it set as Subgroup

enter image description here

In all cases you will see the text is out of vertical alignment in the first column but in the 2 and 3rd columns it is fine eventhough they are point and polygon respectively. Column 1 and 2 are point symbology.

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't find a way to fix it. They are all defined as Subgroups but have also tried to define the Title as a group (menu on right click when in the legend definition view)

enter image description here

enter image description here

Related to this, I've found some icons aren't aligned. There is no xy offset set on it

enter image description here

The only way I can see to fix it is by splitting the legend into columns. Is there an easier way?

UPDATE based on answer from Corentin Lemaitre

Issue 2 (Horizontal) is fixed by changing the patch size. But I can't fix issue 1 (Vertical) alignment using spacing...

enter image description here

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't find a way to fix it. They are all defined as Subgroups but have also tried to define the Title as a group (menu on right click when in the legend definition view)

enter image description here

enter image description here

Related to this, I've found some icons aren't aligned. There is no xy offset set on it

enter image description here

The only way I can see to fix it is by splitting the legend into columns. Is there an easier way?

UPDATE based on answer from Corentin Lemaitre

Issue 2 (Horizontal) is fixed by changing the patch size. But I can't fix issue 1 (Vertical) alignment using spacing...

enter image description here

If I reset everything to Default, we still have the issue.

enter image description here

Then with layer title Hidden

enter image description here

And with it set as Subgroup

enter image description here

In all cases you will see the text is out of vertical alignment in the first column but in the 2 and 3rd columns it is fine eventhough they are point and polygon respectively. Column 1 and 2 are point symbology.

updated example based on answer
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143

Vertically and Horizontall align the labels in multi-column QGIS legends

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't find a way to fix it. They are all defined as Subgroups but have also tried to define the Title as a group (menu on right click when in the legend definition view)

enter image description here

enter image description here

Related to this, I've found some icons aren't aligned. There is no xy offset set on it

enter image description here

The only way I can see to fix it is by splitting the legend into columns. Is there an easier way?

UPDATE based on answer from Corentin Lemaitre

Issue 2 (Horizontal) is fixed by changing the patch size. But I can't fix issue 1 (Vertical) alignment using spacing...

enter image description here

Vertically align the labels in QGIS legends

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't find a way to fix it. They are all defined as Subgroups but have also tried to define the Title as a group (menu on right click when in the legend definition view)

enter image description here

enter image description here

Related to this, I've found some icons aren't aligned. There is no xy offset set on it

enter image description here

The only way I can see to fix it is by splitting the legend into columns. Is there an easier way?

Vertically and Horizontall align the labels in multi-column QGIS legends

In QGIS 3.18 (and older versions) I noticed that the first item in a multi-column legend isn't aligned with the items in other columns. I have played with the settings in the Spacing column but can't find a way to fix it. They are all defined as Subgroups but have also tried to define the Title as a group (menu on right click when in the legend definition view)

enter image description here

enter image description here

Related to this, I've found some icons aren't aligned. There is no xy offset set on it

enter image description here

The only way I can see to fix it is by splitting the legend into columns. Is there an easier way?

UPDATE based on answer from Corentin Lemaitre

Issue 2 (Horizontal) is fixed by changing the patch size. But I can't fix issue 1 (Vertical) alignment using spacing...

enter image description here

Tweeted twitter.com/StackGIS/status/1392585394848468992
Change tag
Link
MrXsquared
  • 35.6k
  • 22
  • 71
  • 121
Loading
Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
Loading