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

Error with geom_count() #139

Open
oO-Hailix-Oo opened this issue Nov 20, 2024 · 0 comments
Open

Error with geom_count() #139

oO-Hailix-Oo opened this issue Nov 20, 2024 · 0 comments

Comments

@oO-Hailix-Oo
Copy link

oO-Hailix-Oo commented Nov 20, 2024

Hello,

Thank you for this toolbox, which I have just discovered.
I downloaded the file from MathWorks File Exchange.

After some successful trials with the toolbox, I tried to use the geom_count() function. However, with each call, I get the following error:

"Unrecognized method, property, or field 'continuous_color' for class 'gramm'."

Here is an example of the code I used to test the function:

Method = [1;1;1;1;1;2;2;2;2;2;3;3;3;3;3;4;4;4;4;4;5;5;5;5;5];
Score  = [1;1;1;1;4;2;1;1;1;5;3;3;5;7;4;4;6;5;9;9;7;5;7;6;4];
dataTable = table(Method,Score);
figure()
g = gramm('x',dataTable.Method,'y',dataTable.Score);
g.geom_count('scale',50);
g.set_names('x','Method','y','GreatCircleError (°)');
g.draw();

I am not sure if the error is due to my incorrect use of the function. However, after a quick glance at the code, I fixed it by simply replacing line 20 of geom_count.m:
if obj.continuous_color
with:
if obj.continuous_color_options.active

Now my code runs, and I get the expected figure type. Since I am still exploring the toolbox and haven’t looked at the rest of the code in detail, I’m not sure if this correction is relevant.
I hope this can help.

Thanks again!

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

1 participant