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

FunctionImplementation::draw forces the location of the color bar in 2D #2658

Closed
regislebrun opened this issue May 14, 2024 · 1 comment
Closed
Milestone

Comments

@regislebrun
Copy link
Member

What happened?

The value associated to the "Contour-DefaultColorBarPosition" key in ResourceMap is ignored by FunctionImplementation::draw(), see

isoValues.setColorBarPosition("right");

This problem is triggered either when drawing a Function or the PDF/CDF of a bivariate distribution

How to reproduce the issue?

import openturns as ot

ot.ResourceMap.SetAsString("Contour-DefaultColorBarPosition", "")
g = Normal(2).drawPDF()
ot.Show(g) # The colorbar is there!

Version

1.24dev

Operating System

all

Installation media

from source

Additional Context

No response

@mbaudin47
Copy link
Collaborator

@jschueller : This should be fixed for 1.23: it is easy to fix and it is related to a new feature of this release.

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

No branches or pull requests

2 participants