Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 17 August 2013 08:58:11(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
Here is a basic heatmap function.

EDIT: Updated, round(1) replaced by round(2) in order to avoid hidden dependencies to mathlib.dll via EFI plugin.

Edited by user 17 August 2013 16:56:07(UTC)  | Reason: Not specified

File Attachment(s):
heatmap.sm (19kb) downloaded 122 time(s).
mkraska attached the following image(s):
heatmap.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline kilele  
#2 Posted : 17 August 2013 12:51:28(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
Nice! It reminds me of this other heat map. See the video. There is a download link of the javascript on the youtube description.
Offline mkraska  
#3 Posted : 17 August 2013 13:26:08(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
Originally Posted by: kilele Go to Quoted Post
It reminds me of this other heat map. See the video.

Yes, the example is one of the category "how to solve a problem in SMath that I would not have without SMath". Personally, I prefer gnuplot or matlab for real plotting, although the XY-Plot-Plugin is quite fine for the use cases it can handle (heat map not being among them). I intend to use the function for visualization of matrix population, e.g. for the stiffness matrix of a finite element model.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 17/08/2013(UTC),  on 17/08/2013(UTC)
Offline Davide Carpi  
#4 Posted : 17 August 2013 15:51:55(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Very nice, Good

there's the round() function to fix (round(2) instead of the inexistent round(1))


best regards,

Davide
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline mkraska  
#5 Posted : 17 August 2013 16:37:38(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
round(1) is from the mathlib.dll via EFI for SMath Studio plugin, which is pre-installed in the inofficial distribution ("SMath with plugins" wiki page).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Davide Carpi  
#6 Posted : 17 August 2013 16:48:02(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Originally Posted by: mkraska Go to Quoted Post
round(1) is from the mathlib.dll via EFI for SMath Studio plugin, which is pre-installed in the inofficial distribution ("SMath with plugins" wiki page).

Ok (The worksheet doesn't contains the EFI in the <dependences> tag, so the notification does not appears)

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline mkraska  
#7 Posted : 17 August 2013 17:02:02(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1126 time(s) in 723 post(s)
Originally Posted by: w3b5urf3r_reloaded Go to Quoted Post
Ok (The worksheet doesn't contains the EFI in the <dependences> tag, so the notification does not appears)

I guess that the dependency finder is not aware of what the EFI plugin loads in the background. However, I changed the example to rely on round(1) only.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.