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

Name-Value argument BaseValue not working #231

Closed
xarico10 opened this issue Jul 30, 2021 · 1 comment · May be fixed by #325
Closed

Name-Value argument BaseValue not working #231

xarico10 opened this issue Jul 30, 2021 · 1 comment · May be fixed by #325
Assignees
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once

Comments

@xarico10
Copy link
Contributor

When specifying an initial base value using 'BaseValue no changes are made.

For example,

y = [8 15 33; 30 35 40; 50 55 62];
barh(y,'BaseValue',25)

fig2plotly(gcf, 'offline', false);

The previous code should produce an horizontal bar chart in which the 'zero value' or base value should be 25, however, it starts at 0 as usual.

Expected and generated (https://chart-studio.plotly.com/~xarico10/573/#/) plots:
Captura de Pantalla 2021-07-30 a la(s) 3 46 57 p  m
Captura de Pantalla 2021-07-30 a la(s) 3 47 10 p  m

Examples on using 'BaseValue can be found on:
https://www.mathworks.com/help/matlab/ref/barh.html#mw_caa2d25c-e3b8-47db-ad74-c7643062cbf8

@uzairmughal110 uzairmughal110 self-assigned this Aug 1, 2021
@xarico10 xarico10 added the ⭐⭐⭐ multiplier Issues that could close multiple related issues at once label Aug 2, 2021
@harshpurwar
Copy link
Contributor

Sorry Uzair, was looking for something in bar reference and found a solution to this...

Vertical bars without Basevalue argument...
image

Horizontal bars with BaseValue=25
image

Vertical bars with BaseValue=30
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants