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

BaseValue issue resolved #325

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

BaseValue issue resolved #325

wants to merge 4 commits into from

Conversation

harshpurwar
Copy link
Contributor

@harshpurwar harshpurwar commented Aug 8, 2021

This PR resolves issue231

Sample code to try:

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

fig2plotly(gcf, 'offline', false);

NOTE: You may see a warning for missing tickvals, but since strip is set to false and tickvals is indeed a correct property for x/y axis, this still works. Let's discuss on Slack how to update plotly/plotly_help_aux/plotly_reference.mat after which this warning would disappear automatically.

Vertical bars without Basevalue argument...
image

Horizontal bars with BaseValue=25
image

Vertical bars with BaseValue=30
image

@VolKa79
Copy link

VolKa79 commented Aug 8, 2021

Graph is good, but getting the next warnings:

warning: error using update_opac
warning: error using update_opac
warning: error using update_opac
Whoops! Reference to non-existent field 'tickvals' in xaxis

is4

@jackparmer
Copy link
Contributor

Graph is good, but getting the next warnings...

@VolKa79 Purwar already mentioned this

NOTE: You may see a warning for missing tickvals, but since strip is set to false and tickvals is indeed a correct property for x/y axis, this still works. Let's discuss on Slack how to update plotly/plotly_help_aux/plotly_reference.mat after which this warning would disappear automatically.

@jackparmer jackparmer mentioned this pull request Aug 9, 2021
Copy link
Contributor

@xarico10 xarico10 left a comment

Choose a reason for hiding this comment

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

I do get the warning message but I'm not getting the correct graph:

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

fig2plotly(gcf, 'offline', false);

Captura de Pantalla 2021-08-09 a la(s) 1 29 50 p  m

@harshpurwar
Copy link
Contributor Author

harshpurwar commented Aug 10, 2021

Hello @xarico10

Are you sure you are using the right branch for this? Please do verify it once more.

git checkout issue231
git pull

Make sure that the git checkout actually worked. If you have any uncommitted changes, make sure to either reset the repo git reset --hard (you will lose your changes) or stash your changes git stash before checking out this branch.

What all warnings do you get? Also, what MATLAB version did you try this on?

@xarico10
Copy link
Contributor

I was missing the Deep Learning Toolbox that is needed. Works for me now, printing the warning message you mentioned.

@xarico10
Copy link
Contributor

@jackparmer Please let me know if we wanna merge this, even with the warning message mentioned.

@harshpurwar
Copy link
Contributor Author

I am working on resolving these warnings. We can merge this or wait for some time until I resolve this, I don't mind.

@harshpurwar
Copy link
Contributor Author

harshpurwar commented Aug 16, 2021

This PR now also updates the Plotly JSON schema.
I tested it thoroughly for bars (no warnings). Although there may still be some warnings for other plot types (or traces) due to the updated JSON structure. Certain field properties are deprecated, like titlefont, xref/yref for legends, etc.

@jackparmer When your testing framework with Kaleido is ready, we could test this to see what warnings we get and for what trace types. Until then, I think the only option is to check this manually for various trace types.

I will inform others about the warning messages and what to do if they do see these on Slack.

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.

Name-Value argument BaseValue not working
4 participants