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

Scatterplot axis labels do not match data #524

Closed
timstallmann opened this issue Nov 11, 2016 · 11 comments
Closed

Scatterplot axis labels do not match data #524

timstallmann opened this issue Nov 11, 2016 · 11 comments
Assignees
Milestone

Comments

@timstallmann
Copy link

timstallmann commented Nov 11, 2016

#Hi -- I'm seeing this issue across several different datasets and across different views in the software, (v 1.8.14 on Mac OS X El Capitan). Scatter plot axis labels do not correspond to the actual data values in those positions. See example below, where the variable range is 0 to 1 but axis labels make it appear that the range is -0.7 to 2.3

screen shot 2016-11-11 at 12 19 40 pm

@lixun910
Copy link
Member

@timstallmann Thanks for reporting this! The figure you posted is Moran's I scatter plot, which the variable on x-axis are standardized so that the units in the graph correspond to standard deviation.

Do you have the same issue in regular scatter plot?

@timstallmann
Copy link
Author

timstallmann commented Nov 14, 2016

@lixun910 that makes sense! Would it be possible to add a label to the axes indicating they were standardized? For example VARIABLE_NAME (std. deviation) as the default axis label rather than just VARIABLE_NAME?

I have had this issue on other scatterplots, but perhaps I'm misunderstanding how the output should look. Here's a screenshot of a test case on a standard scatterplot. The highlighted point should have y-value 0.51 (third column from the right, since I accidentally cut off the table headers in the screenshot), but according to the plot axes it has a value below 0.5.

screen shot 2016-11-14 at 9 14 09 am

@lixun910
Copy link
Member

@timstallmann Thank you! The regular scatter plots should use raw data unless you select "data->View standardized data" from the right-click popup menu. The screenshot you posted looks like not a completed one. Can you do another screenshot by hovering the mouse on the point you try to highlight, so that on the status bar, you can see the (x,y) value of the selected point. For example:
screen shot 2016-11-14 at 9 18 21 am

@lixun910
Copy link
Member

@jkoschinsky as @timstallmann suggested, in moran scatterplot, "Would it be possible to add a label to the axes indicating they were standardized? For example VARIABLE_NAME (std. deviation) as the default axis label rather than just VARIABLE_NAME?"

@timstallmann
Copy link
Author

@lixun910 sure thing - here's a screenshot. I can't get the cursor to appear, but I'm hovering over the selected point.

screen shot 2016-11-14 at 10 40 17 am

@lixun910
Copy link
Member

@timstallmann Thanks! Will check on this issue soon, and keep you updated.

@lixun910
Copy link
Member

@timstallmann I just checked on my side including the code, and can't replicate what you had. One more thing, can you check if the right click popup menu has "Data->View Original Data" checked?
For helping us troubleshooting this issue, is it possible to share your data with us privately? you can send it to [email protected] and we will delete it after troubleshooting. Thanks!

screen shot 2016-11-14 at 10 47 29 am

@timstallmann
Copy link
Author

timstallmann commented Nov 14, 2016

@lixun910 confirmed that that View Original Data is checked. And I know how frustrating it can be to try and duplicate an issue locally!!

This is all public data, so just posting the shapefile here. Here are the steps I followed:

  • Open GeoDa
  • Open the shapefile
  • Click the "Scatterplot" button on the toolbar
  • Select independent variable Pct_NHWht and dependent variable pct_trump

votes_by_county.zip

@lixun910
Copy link
Member

@timstallmann Thanks for sharing! I actually figured out what was wrong in GeoDa using your data: the ticks on the vertical/horiz axis are (by default) set to with 1 display precision. The 0.5 tick on the y axis should be 0.54 (see this figure).
screen shot 2016-11-14 at 12 33 10 pm
In our next release, GeoDa will set the default display precision=2, and also allows user to adjust this number. I could give you an internal build soon this week, and the official release will be out in this month. Let me know if you want to try it out. Thanks again for reporting this and helping solve this issue!

@timstallmann
Copy link
Author

Wow — thanks for tracking this down!! I’m happy to wait for the next
official update now that I know what’s going on…

On November 14, 2016 at 1:41:06 PM, Xun Li ([email protected]) wrote:

@timstallmann https://github.com/timstallmann Thanks for sharing! I
actually figured out what was wrong in GeoDa using your data: the ticks on
the vertical/horiz axis are (by default) set to with 1 display precision.
The 0.5 tick on the y axis should be 0.54 (see this figure).
[image: screen shot 2016-11-14 at 12 33 10 pm]
https://cloud.githubusercontent.com/assets/2423887/20277749/79aa3854-aa67-11e6-8194-4e33393f9a1e.png
In our next release, GeoDa will set the default display precision=2, and
also allows user to adjust this number. I could give you an internal build
soon this week, and the official release will be out in this month. Let me
know if you want to try it out. Thanks again for reporting this and helping
solve this issue!


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#524 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGbfsgYSVfmXaPGK143DWj3_YyuNERUgks5q-KtBgaJpZM4Kv9Re
.

lixun910 referenced this issue in lixun910/geoda Nov 14, 2016
also set default display precision to 2 on some plots (e.g. scatter
plots) other plots (e.g. cond) also use 1 display precision
@lixun910 lixun910 self-assigned this Nov 17, 2016
@lixun910 lixun910 added this to the 1.8 milestone Nov 17, 2016
@jkoschinsky
Copy link
Collaborator

GeoDa 1.8.15.5 — Mac OSX
Confirmed fix.

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

3 participants