Skip to content

Qt figure options colors in text fields #4600

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

Closed
rmccampbell opened this issue Jul 8, 2015 · 1 comment
Closed

Qt figure options colors in text fields #4600

rmccampbell opened this issue Jul 8, 2015 · 1 comment

Comments

@rmccampbell
Copy link

If you assign any of the text fields in the figure options dialog to a "color-like" string, it changes into a color field the next time you open the dialog. This happens even in some not-so-obvious cases, like the letter 'y' (which you'd think you'd be able to use for a y axis label). This would be a little difficult to fix since the form dialog code is pretty complex, but a quick solution would be to only consider #ffffff style strings as colors, and add a helper function to convert the color properties to this format. a better solution would be to either wrap the color properties in an object, or add some kind of disambiguation parameter to the form parser (as an optional third entry in each tuple, i.e. "('Color', line.get_color(), 'color')").

@tacaswell
Copy link
Member

Thank you for reporting this.

Closing as a duplicate, I believe that this was fixed by #4304. Please ping to have re-opened if you can reproduce this on master.

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

No branches or pull requests

2 participants