Learning Curve of Wolfram Alpha or Matlab

Click For Summary

Discussion Overview

The discussion revolves around the learning curve associated with using Wolfram Alpha and Matlab, particularly in the context of plotting heat maps and geographical data analysis. Participants explore various tools and programming languages that can facilitate this task, sharing their experiences and preferences.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses a desire to create a heat map to determine the geographical center of several points using Pythagorean distance calculations.
  • Another suggests trying FreeMat as a free alternative to Matlab, mentioning its core functionality.
  • Some participants propose using Python's matplotlib for plotting, highlighting its capabilities and availability of example code.
  • A participant mentions the use of Dynamic HTML and JavaScript for creating visualizations, indicating a preference for self-made solutions over existing applications.
  • Concerns are raised about the value of learning to code when applications exist that can perform similar tasks with minimal effort.
  • Conditional formatting in LibreOffice is mentioned as a method for creating heat maps, with a note on scaling longitude for accurate distance calculations.
  • Discussion includes a mention of Plotly as a potential tool for heat maps, though it is noted that it is not as comprehensive as Matlab or matplotlib.
  • Some participants reflect on the longevity and maintenance of personal projects, emphasizing the importance of self-contained solutions.

Areas of Agreement / Disagreement

Participants express a mix of opinions regarding the best tools and methods for plotting and data visualization. There is no clear consensus on which approach is superior, as various tools and programming languages are suggested, each with its own merits and drawbacks.

Contextual Notes

Some participants note the limitations of certain tools, such as FreeMat's activity level and the potential obsolescence of certain programming practices. There are also mentions of specific conditions affecting the accuracy of distance calculations in the context of geographical data.

Who May Find This Useful

This discussion may be useful for individuals interested in data visualization, geographical analysis, or those exploring different programming tools for plotting and graphical rendering.

DaveC426913
Gold Member
2025 Award
Messages
24,286
Reaction score
8,434
TL;DR
I'm always wanting to plot simple graphs, what are my options?
I should probably get one or two of these under my belt.

My current need is to plot a ... I guess it's a heat map.

I've got a map of my local area and I want to determine the geographical centre of a number of points (say, seven). So, for every xy "cell" on the map, I'll use pythagoras to determine the "as the crow flies" distance from each of the start points, add them up and give them a colour.

I'm hoping for something vaguely like this:
HoloviewsOutput.png

(I may be overengineering this - but I do like graphical renders. I'm sure there's a much more expedient way to find the centre of n points, using just geometry.)
 
Physics news on Phys.org
Cool. My go-to would be Dynamic HTML using Javascript such as jQuery. Maybe freemat will provide the infrastructure for me that I'd have to otherewise make.
 
*sigh*
What's the point in learning to do something if someone's already produced an app that does it with a click?

https://www.geomidpoint.com/

1639709790420.png

Really wanted to see that heat map tho... :sorry:
 
With conditional formatting in LibreOffice and two different color scales:

distances.png


distances2.png
Note: I scaled longitude with cos(43 degrees) to get a more realistic latitude/"longitude" distance ratio in the calculations but didn't pay too much attention to getting that right for the large table.
 
Writing code to compete with an existing app is still a lot of fun. One has to reverse engineer the algorithms used and then make your app more suited to what you want which in turn make it a better app worthy of becoming publicly available via Github.
 
DaveC426913 said:
Summary:: I'm always wanting to plot simple graphs, what are my options?
DaveC426913 said:
*sigh*
What's the point in learning to do something if someone's already produced an app that does it with a click?
Well, this very specific app will not give you any progress in the general goal of being able to plot simple graphs.
 
jedishrfu said:
Try freemat before you jump into get Matlab. It’s free and implements most of Matlab s core functionality For free. Free free free!

http://freemat.sourceforge.net/
Freemat seems not to be very active anymore? Why not use Octave instead? (Or indeed scipy, numpy, matplotlib from Python)
 
Freemat is the smaller of the two as a single executable And seems to mimic Matlab more closely than Octave.
 
  • Like
Likes   Reactions: Arjan82
  • #10
Huh. Well that wasn't nearly as painful as I thought. Took me all of 3 hours in Dynamic HTML and Vanilla JavaScript. Didn't need a library after all (only 44 lines of code).

This is rough and crude and I can add a lot of bells and whistles to it, including generalizing it to accept any number of "houses", but it is operating at full capacity.

1639857707959.png


It is, alas, as-the-crow-flies, so does not account for roads or speeds - just straight line-of-sight distance.

(Note: the point in the far east is actually two points - two people carpooling from the same location. This skews the centre a little east.)
 
Last edited:
  • Like
Likes   Reactions: mfb
  • #11
DaveC426913 said:
Cool. My go-to would be Dynamic HTML using Javascript such as jQuery.
I see you have a solution, but for future use I recommend Plotly. It is not as comprehensive as Matlab or matplotlib, but it does do heat maps.

It is 2021, nobody uses the term 'Dynamic HTML' any more, or jQuery :-p
 
Last edited:
  • #12
pbuk said:
It is 2021, nobody uses the term 'Dynamic HTML' any more, or jQuery :-p
Nobody uses vanilla JS anymore.
 
  • Like
Likes   Reactions: pbuk
  • #13
DaveC426913 said:
Nobody uses vanilla JS anymore.
If I had a dollar for every hour I spent working on things that "nobody uses anymore", I would ...
Oh wait, I do. I made a whole career out of it. ;-)
 
  • Like
Likes   Reactions: suremarc and DaveC426913
  • #14
FactChecker said:
If I had a dollar for every hour I spent working on things that "nobody uses anymore", I would ...
Oh wait, I do. I made a whole career out of it. ;-)
For my personal projects, I like self-contained solutions. I find they last longer before rotting.

I have some cool projects - one of which drew in 14,000 users and generated more than a million data points - but, because it relied on a database, the infrastructure rotted as I moved from web service to web service. And now it lies broken until I feel like refurbishing it.
 
  • Like
  • Love
Likes   Reactions: mfb, pbuk and FactChecker
  • #15
FactChecker said:
If I had a dollar for every hour I spent working on things that "nobody uses anymore", I would ...
Oh wait, I do. I made a whole career out of it. ;-)

I would definitely ask for a raise if I were you 😂
 
  • Like
  • Haha
Likes   Reactions: suremarc, mfb and FactChecker
  • #16
Arjan82 said:
I would definitely ask for a raise if I were you 😂
Can I have that in writing?
 
  • Haha
  • Like
Likes   Reactions: suremarc and Arjan82
  • #17
DaveC426913 said:
For my personal projects, I like self-contained solutions. I find they last longer before rotting.

I have some cool projects - one of which drew in 14,000 users and generated more than a million data points - but, because it relied on a database, the infrastructure rotted as I moved from web service to web service. And now it lies broken until I feel like refurbishing it.
Yes. That is one of the great pleasures of being able to select the language and tools that you want to use. It's fun instead of work.
 
  • #18
DaveC426913 said:
For my personal projects, I like self-contained solutions. I find they last longer before rotting.
A good maxim.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
987
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K