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

HeatMap: Prevent overscaling column annotations #4775

Closed
wants to merge 1 commit into from

Conversation

ajdapretnar
Copy link
Contributor

Issue

Maybe fixes #4712.

Description of changes

Do not autoscale labels. I think that's what it does.

Includes
  • Code changes
  • Tests
  • Documentation

@ajdapretnar ajdapretnar changed the title Prevent overscaling column annotations HeatMap: Prevent overscaling column annotations May 15, 2020
@@ -512,7 +512,7 @@ def setHeatmaps(self, parts: 'Parts') -> None:
items=labels, parent=self,
alignment=Qt.AlignLeft | Qt.AlignVCenter,
orientation=Qt.Horizontal,
autoScale=True,
autoScale=False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would leave the annotations unscaled and cramped when there are more columns

Screen Shot 2020-05-15 at 11 52 35

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I thought it cannot be that easy. I only happens for a single variable. If len(var) == 1? And have two different parameters, depending on the number of variables?

@ales-erjavec
Copy link
Contributor

@ajdapretnar Can you please check gh-4777 I think that should fix the underlying error.

@codecov
Copy link

codecov bot commented May 15, 2020

Codecov Report

Merging #4775 into master will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4775      +/-   ##
==========================================
+ Coverage   83.70%   83.82%   +0.12%     
==========================================
  Files         275      276       +1     
  Lines       55620    55929     +309     
==========================================
+ Hits        46557    46885     +328     
+ Misses       9063     9044      -19     

@ajdapretnar
Copy link
Contributor Author

Will check and merge if it fixes the issue.

@ajdapretnar
Copy link
Contributor Author

Closed in favour of #4777.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heat Map: excessively large annotation
2 participants