DISLIN

DISLIN - A high-level plotting library for displaying data - 消息

#21 已发布: 2016/2/25 09:01:46
frapuano

frapuano

13个赞,共115个帖子。

组: User

Succeeded cut and pasting in the placeholder "c:\\file.svg".( but just by chance ..to tell the truth I was trying with the Import method ..but no result ..there is still something not clear to me )

Best regards

Franco
#22 已发布: 2016/2/25 12:35:55
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Hello Franco,

In my notebook I've not unlocked the privileges for "C:\" so the file crashes, but using another path where I have the privileges you have to use simply that path (standard, without double backslashes).

2016-02-25 16_35_45-SMath Studio Desktop - [DISLIN.%20Example1.sm_].png
2016-02-25 16_35_55-SMath Studio Desktop - [DISLIN.%20Example1.sm_].png

BTW I can't resize the image from the context menu of the Image region, an hard crash occours

2016-02-25 16_36_07-SMath Studio Desktop - [DISLIN.%20Example1.sm_].png
2016-02-25 16_36_31-SMath Studio Desktop - [DISLIN.%20Example1.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
ioan92 2016/2/25 12:49:00
#23 已发布: 2016/2/25 13:08:02
Alexander O. Melnik

Alexander O. Melnik

127个赞,共498个帖子。

组: Moderator

Wrote



BTW I can't resize the image from the context menu of the Image region, an hard crash occours



Please report any Image Region bugs to the plugin thread (together with offending file) - I will definitely investigate this.

I have quickly checked "reset size" on a variety of .svg (both embedded and linked) and they work well
#24 已发布: 2016/2/25 13:11:47
frapuano

frapuano

13个赞,共115个帖子。

组: User

Davide,

I have tried to enter a normal path without succeeding probably I am a beginner and I am not able to enter a simple path in a placeholder too.
So not being able to do this I tried the brutal approach of the copy and paste of the path from the first DSLIN instruction and it is with a double quote ..and it worked fine ; probably it is a feature of the image plug-in that is undocumented.

Then I started to play with the image turning it and was OK than I probably played with the size handle and had your same issue .
To make other testing I was forced to reload the file from the UNI e-mail and restart from scratch.

Best regards

Franco
#25 已发布: 2016/3/11 06:29:19
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Functions as parameters not implemented for now but you can try dislin.surmat instead.

DISLIN. Example 2.pdf (235.04 KiB)已下载 1154 次。
DISLIN. Example 2.sm (122.79 KiB)已下载 2018 次。

How to draw a 3d sphere:

DISLIN. Example 3.pdf (954.31 KiB)已下载 1222 次。
DISLIN. Example 3.sm (308.64 KiB)已下载 2023 次。
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
ioan92 2016/3/11 10:11:00
#26 已发布: 2016/3/11 11:27:53
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Hello Uni !

If I understand something in there [quite Chinese to me],
eventually you will be able to plot the breather, is it ?

Will that be compatible Smath 5346 ?

Jean

Breather for UNI.sm (308.66 KiB)已下载 1690 次。
#27 已发布: 2016/3/11 12:47:13
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Hello Ioan,

DISLIN: looks as huge as Scilab. 757 specifications
that's a lot of pages compared to Mathcad menu driven.
In the attached, everything is "robust" for your matrix.
I have interest for DISLIN, but not so much, Why?
DISLIN plotting 3D surface/volume is the wrong approach.
The sole approach is the Mathcad Matrix [single matrix
or triplet CreateMesh] as you can rotate from user on-line
command and in supplement use the picture operator. The
"Matrix Mathcad Method" allows Fourier applications, mostly
image processing, spectral analysis. How many non convivial
steps of DISLIN are eliminated from the "Robust" attach.
We are in 2016 modern stuff rather than 1970 Fortran.

Plugins & Plugins doing what in maths make me S...
when Smath does not "fft" more than a 7 x 7 matrix
"result is above max allowed number" ...
Why not more usable maths with Smath primarily maths oriented,
and doing lot in Maple companionship.

Pure comment from desperate 5346 waiting for a stable updated.
Why not an OdeSolve wrapper [call it plugin].

Jean

Utilities Surface Plot ROBUST.sm (25.71 KiB)已下载 1705 次。

#28 已发布: 2016/3/11 13:37:28
Alexander O. Melnik

Alexander O. Melnik

127个赞,共498个帖子。

组: Moderator

Wrote



BTW I can't resize the image from the context menu of the Image region, an hard crash occours

2016-02-25 16_36_07-SMath Studio Desktop - [DISLIN.%20Example1.sm_].png
2016-02-25 16_36_31-SMath Studio Desktop - [DISLIN.%20Example1.sm_].png



Hi All,

I would love to make the Image Region handle DISLIN properly, however I was not able to come up with a fix myself.

From what I understood, the SVG engine (https://svg.codeplex.com/) has trouble reading Height/Width of the .svg produced by DISLIN. If any of you guys need the functionality enough to investigate and come up with a solution I would love to implement it in the code of the Image Region.

#29 已发布: 2016/3/12 01:47:42
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

Hello Uni !

If I understand something in there [quite Chinese to me],
eventually you will be able to plot the breather, is it ?

Will that be compatible Smath 5346 ?


Yes, I think it possible but now not implemented.

Plotting a Shaded Surface Grid from a Parametric Function

Russia ☭ forever, Viacheslav N. Mezentsev
#30 已发布: 2016/3/17 16:25:35
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Updated. Now you can use: dislin.surfun(), dislin.surfcp().

DISLIN. Example 4.sm (86.15 KiB)已下载 1961 次。
DISLIN. Example 4.pdf (233.03 KiB)已下载 1154 次。

DISLIN. Example 5.sm (119.81 KiB)已下载 2040 次。
DISLIN. Example 5.pdf (430.99 KiB)已下载 1128 次。

DISLIN. Example 6.sm (202.78 KiB)已下载 1917 次。
DISLIN. Example 6.pdf (657.16 KiB)已下载 1322 次。
Russia ☭ forever, Viacheslav N. Mezentsev
3位用户喜欢此帖子
ioan92 2016/3/17 16:28:00, Andrey Ivashov 2016/3/17 17:05:00, frapuano 2016/3/17 17:55:00
#31 已发布: 2016/3/18 00:59:45
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Thanks! More than nice!



Very nice if you know no better. So many pages long before
collapse/open/collapse/open ... That function plots in
less that 10 seconds in Mathcad 11 and earlier, and you can
copy to clipboard, have it on any background color and instant
contour ++++ no sweat.

Jean

#32 已发布: 2016/3/18 03:32:22
frapuano

frapuano

13个赞,共115个帖子。

组: User

I guess that Uni is tying to develop a more friendly interface to access the DSLIN features after getting more confidence with the tons of functions DSLIN is built upon.

Best regards

Franco
#33 已发布: 2016/3/18 13:56:12
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

Hi All,

I would love to make the Image Region handle DISLIN properly, however I was not able to come up with a fix myself.

From what I understood, the SVG engine (https://svg.codeplex.com/) has trouble reading Height/Width of the .svg produced by DISLIN. If any of you guys need the functionality enough to investigate and come up with a solution I would love to implement it in the code of the Image Region.



The svg file doesn't contain viewBox attribute. The ImageRegion plugin could check its availability and if it is not, then add your own:

<svg width="100%" height="100%" viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg">
Russia ☭ forever, Viacheslav N. Mezentsev
2位用户喜欢此帖子
Davide Carpi 2016/3/18 14:01:00, frapuano 2016/3/18 16:39:00
#34 已发布: 2016/3/29 00:26:32
Alexander O. Melnik

Alexander O. Melnik

127个赞,共498个帖子。

组: Moderator

Wrote

Wrote

Hi All,

I would love to make the Image Region handle DISLIN properly, however I was not able to come up with a fix myself.

From what I understood, the SVG engine (https://svg.codeplex.com/) has trouble reading Height/Width of the .svg produced by DISLIN. If any of you guys need the functionality enough to investigate and come up with a solution I would love to implement it in the code of the Image Region.



The svg file doesn't contain viewBox attribute. The ImageRegion plugin could check its availability and if it is not, then add your own:

<svg width="100%" height="100%" viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg">[/code][/quote]

After many-many attempts (I have literally spent good 6 hours to fix display of DISLIN svg) I have found the "correct" way of fixing the missing viewport parameter.

Plugin was updated.

[code=csharp]

if (SVGdoc.OwnerDocument.ViewBox.Width == 0 || SVGdoc.OwnerDocument.ViewBox.Height == 0)
                    {
                        SVGdoc.Height = 1;
                        SVGdoc.Width = 1;
                        SVGdoc.Height = SVGdoc.Height.ToPercentage();
                        SVGdoc.Width = SVGdoc.Width.ToPercentage();

                        SVGdoc.OwnerDocument.ViewBox = new SvgViewBox(SVGdoc.OwnerDocument.Bounds.Left, SVGdoc.OwnerDocument.Bounds.Top, Convert.ToInt32(SVGdoc.OwnerDocument.GetDimensions().Width), Convert.ToInt32(SVGdoc.OwnerDocument.GetDimensions().Height));
                        SVGdoc.Height = Convert.ToInt32(SVGdoc.OwnerDocument.GetDimensions().Height);
                        SVGdoc.Width = Convert.ToInt32(SVGdoc.OwnerDocument.GetDimensions().Width);
                    }

Seems like an extremely simple piece of code now... Doesn't it always.
1位用户喜欢此帖子
#35 已发布: 2016/3/29 01:04:53
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Wrote

After many-many attempts (I have literally spent good 6 hours to fix display of DISLIN svg) I have found the "correct" way of fixing the missing viewport parameter.

Plugin was updated.


Yes, it works. Welcome aboard.

Russia ☭ forever, Viacheslav N. Mezentsev
#36 已发布: 2016/4/3 12:52:34
Alexander O. Melnik

Alexander O. Melnik

127个赞,共498个帖子。

组: Moderator

Hi All,

What is the most encompassing example do you guys have on using DISLIN for 2D plots?

I need to plot a set of straight lines and single points (up to a 100 or so, each is a separate dataset) and am looking for:

- setting the color of each single line
- setting the line type / weight of each single line
- adding a label to each single line
- adding a label to each single point
- precisely manipulating the height / width / position of plot area (independently of the size of the resulting SVG
- adding legend
- adding grid lines


I am aware that a few of the points above are covered by sine/cosine plot from earlier... I am just looking for the most all-encompassing example you guys have.

Thanks!
#37 已发布: 2016/4/3 19:11:16
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

I'm just instrumenting a filtrate bin, rough work.

Jean

Forum Filtrate Bin.gif
#38 已发布: 2016/4/3 20:14:46
Alexander O. Melnik

Alexander O. Melnik

127个赞,共498个帖子。

组: Moderator

As usual, a picture is worth a hudred words... This is what I would like to get at the end (excluding background graphics), without using EXCEL of course. Each node and line is a separate function.
stPLOT.png
#39 已发布: 2016/4/4 11:01:36
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Thanks Viacheslav,

I start getting pregnant.
Somewhat long coding before the bird flies out of the nest.

Salut Ioan and all Collabs

" Le petit pain est dans le four " [bread is cooking]
#40 已发布: 2016/4/4 11:54:25
Alexander O. Melnik

Alexander O. Melnik

127个赞,共498个帖子。

组: Moderator

Jean, on a side note, what is your comment on a quality of DISLIN generated plots?

It is foreseeable that at some point the plugin might become more user friendly, with many settings handled by its own, stand alone, region.. if the end result is worth the effort.
  • 有新帖
  • 无新帖