DISLIN - A high-level plotting library for displaying data - Messages
#1 Posted: 2/14/2016 5:58:08 AM
DISLIN 11.5

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.

Examples:
DISLIN. Example 1.sm (95 KiB) downloaded 163 time(s).
DISLIN. Example 1.pdf (287 KiB) downloaded 184 time(s).
DISLIN. Example 2.pdf (235 KiB) downloaded 202 time(s).
DISLIN. Example 2.sm (122 KiB) downloaded 161 time(s).
DISLIN. Example 3.pdf (954 KiB) downloaded 177 time(s).
DISLIN. Example 3.sm (308 KiB) downloaded 142 time(s).
DISLIN. Example 4.sm (86 KiB) downloaded 140 time(s).
DISLIN. Example 4.pdf (233 KiB) downloaded 166 time(s).
DISLIN. Example 5.sm (119 KiB) downloaded 137 time(s).
DISLIN. Example 5.pdf (430 KiB) downloaded 153 time(s).
DISLIN. Example 6.sm (202 KiB) downloaded 155 time(s).
DISLIN. Example 6.pdf (657 KiB) downloaded 218 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.






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.
Examples:
DISLIN. Example 1.sm (95 KiB) downloaded 163 time(s).
DISLIN. Example 1.pdf (287 KiB) downloaded 184 time(s).
DISLIN. Example 2.pdf (235 KiB) downloaded 202 time(s).
DISLIN. Example 2.sm (122 KiB) downloaded 161 time(s).
DISLIN. Example 3.pdf (954 KiB) downloaded 177 time(s).
DISLIN. Example 3.sm (308 KiB) downloaded 142 time(s).
DISLIN. Example 4.sm (86 KiB) downloaded 140 time(s).
DISLIN. Example 4.pdf (233 KiB) downloaded 166 time(s).
DISLIN. Example 5.sm (119 KiB) downloaded 137 time(s).
DISLIN. Example 5.pdf (430 KiB) downloaded 153 time(s).
DISLIN. Example 6.sm (202 KiB) downloaded 155 time(s).
DISLIN. Example 6.pdf (657 KiB) downloaded 218 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.
Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Radovan Omorjan 2/14/2016 7:33:00 AM, ioan92 2/14/2016 8:01:00 AM, Davide Carpi 2/14/2016 8:05:00 AM
#2 Posted: 2/14/2016 1:32:20 PM
#3 Posted: 2/14/2016 1:46:46 PM
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:
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.
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:
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)
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.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#4 Posted: 2/14/2016 2:49:05 PM
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 (19 KiB) downloaded 63 time(s).
"Functions not defined":
![2016-02-14 18_44_49-SMath Studio Desktop - [Page2_].png](/en-US/file/Dvao5P/2016-02-14-18_44_49-SMath-Studio-Desktop---_Page2___png)
Aside note, crash occours if the output directory doesn't exists;
Files (worksheet, log, output svg): DISLIN.zip (19 KiB) downloaded 63 time(s).
"Functions not defined":
Aside note, crash occours if the output directory doesn't exists;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 2/14/2016 3:01:02 PM
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!).
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.
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!).
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)
EDIT: The library interface is ugly. You must read the user manual before continuing experiments. The order of calling functions is important.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#6 Posted: 2/14/2016 4:50:06 PM
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
1 users liked this post
ioan92 2/14/2016 5:04:00 PM
#7 Posted: 2/14/2016 5:01:08 PM
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
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
#8 Posted: 2/14/2016 5:38:23 PM
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
2 users liked this post
#9 Posted: 2/24/2016 1:32:12 PM
Updated. Problem fixed. Thanks to Andrey for the explanation.
DISLIN. Example1.sm (123 KiB) downloaded 195 time(s).
DISLIN. Example1.pdf (155 KiB) downloaded 284 time(s).
DISLIN. Example1.sm (123 KiB) downloaded 195 time(s).
DISLIN. Example1.pdf (155 KiB) downloaded 284 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Davide Carpi 2/25/2016 7:14:00 AM
#10 Posted: 2/24/2016 1:58:44 PM
DISLIN 0.1.5898.14938 ?
Russia ☭ forever, Viacheslav N. Mezentsev
#11 Posted: 2/24/2016 2:08:58 PM
This is because of other program settings. I'll fix it now.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#12 Posted: 2/24/2016 2:26:37 PM
Updated. Try now.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#13 Posted: 2/24/2016 2:50:42 PM
Later I'll try to show some examples. DISLIN collection is not fully implemented and I will try to solve this.
Online Manual
Online Manual
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#14 Posted: 2/24/2016 4:53:36 PM
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
The release installed is
Working under Windows 7 Professional
Best Regards
Franco
#15 Posted: 2/24/2016 6:02:35 PM
You mean to uninstall all Smath even if I am using actually an updated version of Smath portable.
Franco
Franco
#16 Posted: 2/25/2016 12:47:59 AM
#17 Posted: 2/25/2016 2:25:01 AM
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.
This is just a guess.
Russia ☭ forever, Viacheslav N. Mezentsev
#18 Posted: 2/25/2016 6:37:10 AM
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
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
#19 Posted: 2/25/2016 7:39:44 AM
Confirmed, as stated previously the crash is due to directory management.
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.
WroteAside 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.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
#20 Posted: 2/25/2016 8:53:16 AM
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
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
-
New Posts
-
No New Posts