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

Symbols from multivariate analysis not visible in legend in Layout #39882

Closed
9ls1 opened this issue Nov 8, 2020 · 12 comments
Closed

Symbols from multivariate analysis not visible in legend in Layout #39882

9ls1 opened this issue Nov 8, 2020 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@9ls1
Copy link

9ls1 commented Nov 8, 2020

Describe the bug
Symbols from multivariate analysis not visible in legend in Layout.

How to Reproduce
I have followed the steps for creating proportional symbol and multivariate analysis (QGIS docs). It looks like expected in the canvas and in the Legend Items-window in "Item properties"-tab in the Layout.

However, the symbols are not visible in the legend in the map. How may I make the symbols visible also here?
image

QGIS and OS versions
QGIS ver. 3.16.0-Hannover on Windows 10, 64 bits.

Additional context
@MrXsquared could reproduce the bahviour 3.14.15, 3.10.11 and 3.4.12 on Win64bit versions.

See https://gis.stackexchange.com/questions/378556/how-to-make-symbols-visible-in-legend-in-layout

@9ls1 9ls1 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 8, 2020
@roya0045
Copy link
Contributor

roya0045 commented Nov 8, 2020

Could not replicate on win 10 QGIS 3.14.16 using either categorised or graduated symbology
image

@9ls1
Copy link
Author

9ls1 commented Nov 8, 2020

Thanks. OK, so for now, I have to reinstall the previous version of QGIS to get the desired legend.

@roya0045
Copy link
Contributor

roya0045 commented Nov 8, 2020

Maybe not, can you post your full specs, I have installed through osgeo
QGIS version
3.14.16-Pi
QGIS code revision
df27394
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.0.4
Running against GDAL/OGR
3.0.4
Compiled against GEOS
3.8.1-CAPI-1.13.3
Running against GEOS
3.8.1-CAPI-1.13.3
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.3.2
Running against PROJ
Rel. 6.3.2, May 1st, 2020
OS Version
Windows 10 (10.0)
Active python plugins
quick_map_services;
timemanager;
db_manager;
processing

It might be something else or just a bad setting that doesn't make them appear. If you could share a sample project it would be easier to see if the issue comes from qgis or if we missed something.

@9ls1
Copy link
Author

9ls1 commented Nov 8, 2020

I have also installed through OSGeo4W.
image
Here is a small sample of the data set (zipped gpkg-file):
multivariate_analysis_legend.zip

@gioman
Copy link
Contributor

gioman commented Nov 8, 2020

@9ls1 it does not work on 3.16 and also 3.10, in fact this seems duplicate of #32710

@gioman gioman added Feedback Waiting on the submitter for answers Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels Nov 8, 2020
@roya0045
Copy link
Contributor

roya0045 commented Nov 8, 2020

Tested on master on linux, the points are there in the legend, just quite smaller. If you increase the default size of the points, does that changes things?

@gioman
Copy link
Contributor

gioman commented Nov 8, 2020

the points are there in the legend, just quite smaller.

Actually they are invisible, because they are of size 0.

The parameters that must be changed in order to see them is

Screenshot_20201108_213837

that by default is "0". Not sure if is by design or not, but does not seems intuitive that this must be changed in order to see the symbols in a legend in the composer.

@roya0045
Copy link
Contributor

roya0045 commented Nov 8, 2020

Even on the version that I tried, I set it to two but the symbols in the layout were quite smaller than the layer tree and the layout legend item 'preview, since they were present on the issuer's preview I am assuming that the value was set since we could see them.

@9ls1
Copy link
Author

9ls1 commented Nov 9, 2020

@gioman Thanks a lot! That did the trick for me. Here I have set a minimum size of 2.2.
I agree, it doesn't seem too intuitive to set a size when null. Or did I miss something in the docs, hm.
image

@9ls1 9ls1 closed this as completed Nov 9, 2020
@roya0045
Copy link
Contributor

roya0045 commented Nov 9, 2020

@gioman should we set a default value of 2 to prevent confusion? It's just adding a default value to

<widget class="QgsDoubleSpinBox" name="nullSizeSpinBox">

@gioman
Copy link
Contributor

gioman commented Nov 9, 2020

@gioman should we set a default value of 2 to prevent confusion? It's just adding a default value to

@roya0045 ok for me, but the point is... should not the symbols also show even of that option is set to 0?

@roya0045
Copy link
Contributor

roya0045 commented Nov 9, 2020

The legend is populated from existing symbols, if the reference symbol doesn't have any value to set the size (which should be the case as its a reference symbol) then the size is 0. From what I can understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

3 participants