Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

3 Pages123>
Options
Go to last post Go to first unread
Offline uni  
#1 Posted : 14 February 2016 11:58:08(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
DISLIN 11.3.3

SMath Studio compatibility SMath Viewer compatibility mono compatibility Extension page Sources EULA


DISLIN is a high-level plotting library for displaying data as curves, polar plots, bar graphs, pie charts, 3D-color plots, surfaces, contours and maps.

Note: Paths to image and temp files must exist. Use double slashes ( '\\' ) for DISLIN functions.

2020-11-05_22-49-03.png

Examples:

DISLIN. Example 1.sm (96kb) downloaded 25 time(s).
DISLIN. Example 1.pdf (288kb) downloaded 28 time(s).

DISLIN. Example 2.pdf (236kb) downloaded 125 time(s).
DISLIN. Example 2.sm (123kb) downloaded 90 time(s).

DISLIN. Example 3.pdf (955kb) downloaded 111 time(s).
DISLIN. Example 3.sm (309kb) downloaded 83 time(s).

DISLIN. Example 4.sm (87kb) downloaded 87 time(s).
DISLIN. Example 4.pdf (234kb) downloaded 106 time(s).

DISLIN. Example 5.sm (120kb) downloaded 75 time(s).
DISLIN. Example 5.pdf (431kb) downloaded 91 time(s).

DISLIN. Example 6.sm (203kb) downloaded 91 time(s).
DISLIN. Example 6.pdf (658kb) downloaded 149 time(s).

Links:

1. DISLIN Web site .
2. DISLIN HTML Manual. Contents .
3. Appendix D. Index .
4. A General-Purpose Scientific and Engineering Plotting Library that Includes Smith Charts (PDF file) by Dr. Scott Best from SiberSci, LLC.

Edited by user 06 November 2020 13:51:12(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 3 users thanked uni for this useful post.
on 14/02/2016(UTC),  on 14/02/2016(UTC),  on 14/02/2016(UTC)
Offline Davide Carpi  
#2 Posted : 14 February 2016 19:32:20(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1167 time(s) in 768 post(s)
A complete set of plots in a single plugin, this is wonderful Clap

I cannot evaluate the functions, seems something is missing Huh

Untitled.png



If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline uni  
#3 Posted : 14 February 2016 19:46:46(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
Make sure to use the latest version. Restart SMath Studio if functions unavailable. Turn off autocalc mode.

Something wrong with the SMath Studio I think, there is no working example because I can't save the worksheet. But if you want to try I can get the list of functions which was used in my example (you must manually enter each function ([Ctrl+C] [Ctrl+V]) and press equal sign).

Test example:
Code:

dislin.metafl("svg")
dislin.setfil("d:\\file.svg")
dislin.errdev("FILE")
dislin.errfil("d:\\out.txt")
dislin.filmod("DELETE")
dislin.disini(0)
dislin.disfin(0)


Code:

N:50
for(n,range(1,N),line(el(x,n):{2*π}/N*(n-1),el(y1,n):sin({2*π}/N*(n-1)),el(y2,n):cos({2*π}/N*(n-1)),3,1))

dislin.metafl("svg")
dislin.setfil("d:\\file.svg")
dislin.errdev("FILE")
dislin.errfil("d:\\out.txt")
dislin.filmod("DELETE")
dislin.units("INCH")
dislin.page(800,600)

dislin.disini(0)

dislin.reset("ALL")
dislin.pagera(0)
dislin.complx(0)
dislin.chacod("UTF8")
dislin.axspos(100,520)
dislin.axslen(650,400)
dislin.name("Ось X","X")
dislin.name("Ось Y","Y")
dislin.labdig(1,"X")
dislin.ticks(5,"XY")
dislin.titlin("Пример работы с графиками",1)
dislin.titlin("Функции: sin(x), cos(x)",3)
dislin.linmod("ON","SMOOTH")
dislin.graf(0,2*π,0,π/4,-1,1,-1,0.5)

dislin.color("blue")
dislin.curve(x,y1,N)

dislin.color("red")
dislin.curve(x,y2,N)

dislin.color("fore")
dislin.title(0)

dislin.dash(0)
dislin.grid(1,1)

dislin.solid(0)
dislin.xaxgit(0)

dislin.disfin(0)


EDIT: Tested only with Win x32. Don't forget to show log.txt (in the plugin directory: 23831ed7-5051-46d5-aaa8-b2fb40002ec1\x.x.x.x\) if something not working.

Edited by user 14 February 2016 20:30:42(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 14/02/2016(UTC),  on 14/02/2016(UTC)
Offline Davide Carpi  
#4 Posted : 14 February 2016 20:49:05(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1167 time(s) in 768 post(s)
Thank you Viacheslav, disabling the recalculation I can save your example and I experienced some small improvements (still doesn't works):

Files (worksheet, log, output svg): DISLIN.zip (20kb) downloaded 32 time(s).
"Functions not defined":
2016-02-14 18_44_49-SMath Studio Desktop - [Page2_].png

Aside note, crash occours if the output directory doesn't exists;
If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline uni  
#5 Posted : 14 February 2016 21:01:02(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
I forgot to say that you should not save the file! Look at the contents. Function names lost prefix. Therefore it is necessary to follow exactly what I write.

1. Restart SMath Studio.
2. Turn off autocalc.
3. Do not save the worksheet!
4. Enter functions line by line, don't forget to add = (do not press F9!).
Code:

dislin.metafl("svg")
dislin.setfil("d:\\file.svg")
dislin.errdev("file")
dislin.errfil("d:\\out.txt")
dislin.filmod("delete")
dislin.disini(0)
dislin.disfin(0)

5. Now you can press F9.

EDIT: The library interface is ugly. You must read the user manual before continuing experiments. The order of calling functions is important.

Edited by user 14 February 2016 21:07:37(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 14/02/2016(UTC),  on 15/02/2016(UTC)
Offline uni  
#6 Posted : 14 February 2016 22:50:06(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
There is a bug in SMath Studio I think, we must wait until Andrey say something about saving function names with points. As for file names, you can use any with some rules. One of them - double slash. I use Image Region plugin for visualization, you can use not only svg but other formats too: png, ... (see online help).
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 1 user thanked uni for this useful post.
on 14/02/2016(UTC)
Offline Alex M.  
#7 Posted : 14 February 2016 23:01:08(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 406
Canada

Was thanked: 119 time(s) in 92 post(s)
Uni, great work! Looks like we just might get the right plotting tool in SMath.

Do you think you might have time to integrate DISLIN into a stand alone region?

If you do so, you might get around the function saving bug (since functions will not be exposed to SMath directly), and more importantly, to incorporate all the formatting options into a settings menu instead of typing them one-by-one.

Thank you for your hard work and time spent
Offline uni  
#8 Posted : 14 February 2016 23:38:23(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
Yes, like in assembler it is hard to write what you want. DISLIN is a graphical assembler which contain 777 functions now. It is possible to write some wrapper for it or make a stand alone region but in these directions will be lost some original functionality. I created this plugin only for 3D plotting but after several experiments I see what these functions have a strange behavior with hidden lines. The result image has artifacts.

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 14/02/2016(UTC),  on 15/02/2016(UTC)
Offline uni  
#9 Posted : 24 February 2016 19:32:12(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
Updated. Problem fixed. Thanks to Andrey for the explanation.

DISLIN. Example1.sm (124kb) downloaded 154 time(s).
DISLIN. Example1.pdf (156kb) downloaded 243 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 1 user thanked uni for this useful post.
on 25/02/2016(UTC)
Offline uni  
#10 Posted : 24 February 2016 19:58:44(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
DISLIN 0.1.5898.14938 ?
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline uni  
#11 Posted : 24 February 2016 20:08:58(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
This is because of other program settings. I'll fix it now.
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 24/02/2016(UTC),  on 25/02/2016(UTC)
Offline uni  
#12 Posted : 24 February 2016 20:26:37(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
Updated. Try now.
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 24/02/2016(UTC),  on 25/02/2016(UTC)
Offline uni  
#13 Posted : 24 February 2016 20:50:42(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
Later I'll try to show some examples. DISLIN collection is not fully implemented and I will try to solve this.

Online Manual

Edited by user 24 February 2016 20:52:47(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 24/02/2016(UTC),  on 25/02/2016(UTC)
Offline frapuano  
#14 Posted : 24 February 2016 22:53:36(UTC)
frapuano


Rank: Advanced Member

Groups: Registered
Joined: 01/08/2010(UTC)
Posts: 115
Man
Italy
Location: Rome

Was thanked: 13 time(s) in 13 post(s)
Strange on my system Smath crashes and I am forced to close the program.
The release installed is



Working under Windows 7 Professional

Best Regards

Franco
Offline frapuano  
#15 Posted : 25 February 2016 00:02:35(UTC)
frapuano


Rank: Advanced Member

Groups: Registered
Joined: 01/08/2010(UTC)
Posts: 115
Man
Italy
Location: Rome

Was thanked: 13 time(s) in 13 post(s)
You mean to uninstall all Smath even if I am using actually an updated version of Smath portable.

Franco
Offline Alex M.  
#16 Posted : 25 February 2016 06:47:59(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 406
Canada

Was thanked: 119 time(s) in 92 post(s)
I confirm SMath crash trying to open DISLIN.Example1.sm

SMcrash3.png
SMcrash1.png
SMcrash2.png
Offline uni  
#17 Posted : 25 February 2016 08:25:01(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,101
Man
Russian Federation

Was thanked: 972 time(s) in 557 post(s)
I have Windows 7 Ultimate x64 and it works fine for me. Show me log.txt (in plugin folder). Maybe environment variable TEMP points to a long path and DISLIN can't get access to the temporary folder. My TEMP=C:\Temp
This is just a guess.
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline frapuano  
#18 Posted : 25 February 2016 12:37:10(UTC)
frapuano


Rank: Advanced Member

Groups: Registered
Joined: 01/08/2010(UTC)
Posts: 115
Man
Italy
Location: Rome

Was thanked: 13 time(s) in 13 post(s)
Uninstalled everything using Windows uninstall , then deleted Smath directory and other directories linked to Smath (I guess).
Reinstalled again downloading the last release from the site ...same result ( I haven't restarted the LT in between ) .
The example file loads and after a little bit comes up the screen with : Smath Studio Desktop has stopped working ..
Moreover I do not find any log.txt in the plugin folder and any dslin.something else anywhere on my computer ...make me wonder if the DSLIN plug in has been really downloaded and stored somewhere.

Best regards

Franco
Offline Davide Carpi  
#19 Posted : 25 February 2016 13:39:44(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1167 time(s) in 768 post(s)
Confirmed, as stated previously the crash is due to directory management.
Originally Posted by: Davide Carpi Go to Quoted Post
Aside note, crash occours if the output directory doesn't exists;


You have to disable the auto recalculation, open the worksheet, change the directories, and then you can run the example provided by Viacheslav.

Log file is available only if SMath is running, deleted after closing.

Edited by user 25 February 2016 13:41:48(UTC)  | Reason: Not specified

If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
thanks 2 users thanked Davide Carpi for this useful post.
on 25/02/2016(UTC),  on 25/02/2016(UTC)
Offline frapuano  
#20 Posted : 25 February 2016 14:53:16(UTC)
frapuano


Rank: Advanced Member

Groups: Registered
Joined: 01/08/2010(UTC)
Posts: 115
Man
Italy
Location: Rome

Was thanked: 13 time(s) in 13 post(s)
Davide

Doing as you suggest and renaming the files to c:\file.svg and c:\out.txt ( on my computer and using a double \\ in the DSLIN command ) creates the output file and I am able to read the svg file in Inkscape ...I have still problem due to my ignorance of the new Image region to visualize it in Smath ..but hope soon or later to succeed.

Thanks a lot and best regards

Franco
Users browsing this topic
3 Pages123>
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.