Message Boards Message Boards

0
|
2508 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

"Show Populations around Amusement Parks" example has error I want to fix

Posted 9 years ago

I'm new to Mathematica and the Wolfram language, and I am using some example projects to gain familiarity. In particular, now I'm looking at two examples.

Show Populations around Amusement Parks: http://www.wolfram.com/mathematica/new-in-10/geographic-visualization/show-populations-around-amusement-parks.html

Plot the Density of Library Books in the United States: http://www.wolfram.com/mathematica/new-in-10/geographic-visualization/plot-the-density-of-library-books-in-the-united-st.html

For both of these examples, In[4] causes errors. The code attempts to do a transpose operation on the symbolic Entities, and it fails.

I'm trying to resolve this. In particular, I'm trying to master the visualization of plotting on maps, and it would really help to see what data formats are necessary because I can put in different formats into the final map generation stage and get wildly different results. So, the fact that it is impossible to understand what the coordinate data is, in these non-working examples, is a real problem for me. Any advice would be gratefully received. Thanks.

POSTED BY: JP Norair

These are cool examples, but they're probably not the best examples to study if you're new to Mathematica. A lot of these examples are really meant to show off and be fancy. I recommend looking at the examples in the documentation:

http://reference.wolfram.com/language/ref/EntityClass.html http://reference.wolfram.com/language/ref/GeoListPlot.html http://reference.wolfram.com/language/ref/GeoGraphics.html

The documentation is also great because it's available in Mathematica itself. You don't need to copy and paste code. The documentation is a live document that you can play with and make changes to.


The code looks like it written fairly early and didn't reflect some changes. For example, "Library" isn't really a kind of Entity anymore. It's been broken up into "LibraryBranch" and "LibrarySystem". So the first piece of code for the Library example probably should be

allLibraries = EntityValue["LibraryBranch", "Entities"]

Thank you for letting us know about this issue. I will contact the relevant people so that these examples get updated.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract