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

Notification

Icon
Error

Login


27 Pages«<910111213>»
Options
Go to last post Go to first unread
Offline uni  
#201 Posted : 17 March 2018 07:10:33(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1274 time(s) in 745 post(s)
Quote:
I just downloaded 0.99 and it didn't work out.

Tell me more about what's wrong.

2018-03-17_09-09-45.png
Russia ☭ forever
Viacheslav N. Mezentsev
Offline Gecko  
#202 Posted : 19 March 2018 15:14:00(UTC)
Gecko

Rank: Newbie

Groups: Registered
Joined: 16/03/2018(UTC)
Posts: 2

Hi Uni,

I downloaded your zip file, then copied the two dll files into the plugin folder of smath. When I then start smath I get an error message saying "The remote server returned an error: (407) Proxy Authentication Required".
error.PNG

Sorry I am a newbee. I am not familiar with the procedure for installing plugins. I had used mathcad in the past, and I started working a bit with smath about a year ago. I was looking for a WYSIWYG option, next to python. I do found smath rather convenient but was not so happy with the plotting options so I was curious to see how it would turn out with that plugin.

Thanks for your help.
Offline uni  
#203 Posted : 19 March 2018 16:12:42(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1274 time(s) in 745 post(s)
You need to use the Extension Manager (from SMath Studio main menu) to install plugins.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline Davide Carpi  
#204 Posted : 19 March 2018 16:23:44(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1323 time(s) in 873 post(s)
Before using the Extensions Manager please remove any plugin you have manually installed. Good

Originally Posted by: uni Go to Quoted Post
You need to use the Extension Manager (from SMath Studio main menu) to install plugins.


This is under Tools > Plugins... > Online gallery

2018-03-19 14_21_24-SMath Studio - [Page1].png

2018-03-19 14_21_43-SMath Studio - [Page1].png

Edited by user 19 March 2018 16:35:54(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 19/03/2018(UTC)
Offline ElSid  
#205 Posted : 28 March 2018 17:50:28(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Going to my heat transfer sheet ...
I was plotting the curves and started filling in the table information. The title stuck, but the X and Y labels did not.
I have tried several times, including creating a new graph, to fix these labels and the plugin freezes SMath. I need to enter task manager to end the program. Essentially, the "pop-up" associated with this plugin is not showing up.
XY-Plot Crash.sm (116kb) downloaded 52 time(s).

PS, I created a new sheet and inserted a zed graph, pop up came up. I created another new sheet and inserted a blank X-Y graph, it crashed.

Edited by user 28 March 2018 18:00:53(UTC)  | Reason: Added PS

Offline Jean Giraud  
#206 Posted : 28 March 2018 19:14:46(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: ElSid Go to Quoted Post
... it crashed.

Quite OK here.
Are you doing something wrong or bug wrt your Smath version ? ?

ElsidX_Y.PNG

Offline ElSid  
#207 Posted : 28 March 2018 19:22:08(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Are you doing something wrong or bug wrt your Smath version?

My sheet has the app version. I'm on 0.99.6654. Looks like that may be the problem
Offline Jean Giraud  
#208 Posted : 28 March 2018 19:53:16(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: ElSid Go to Quoted Post
My sheet has the app version.
I'm on 0.99.6654.Looks like that may be the problem


Conclusively, Maxima X_Y is affected by the Smath version.
Offline uni  
#209 Posted : 29 March 2018 07:04:16(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1274 time(s) in 745 post(s)
I can't reproduce the issue. Can you make a screenshot or save crash dump?
Russia ☭ forever
Viacheslav N. Mezentsev
Offline ElSid  
#210 Posted : 29 March 2018 15:31:38(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Issue was with SMath 0.99.6654. Andrey updated Smath to 0.99.6661 yesterday and the plugin works
Offline ElSid  
#211 Posted : 13 April 2018 20:42:37(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Originally Posted by: ElSid Go to Quoted Post
Found the issue(s). See revamped file. Still having issues in that X-Y plot Labels for the legend *zap* Quick Sound Loss.smz (143kb) downloaded 61 time(s).
Edit: Two bugs
  1. X-Y Plot. If functions crash, *Zap* to the legend titles. All other titles OK. Legend is empty due to laziness after last 5 crashes
  2. solve(4) did not like trying to cancel units in the denominator of the final function (#dist). As I was adding units to x:0-100 FT and dividing the units meters in the function, the function crashed in the solve block (Just the function, with all values plugged in except for x = vector, so it's a solve(4) issue).
This is one of those sheets where UNITS are huge! The equations are all based off of SI/metric references. Major issue

There is additional documentation and function definition updates. Sanity check the graph x scale (adjusted for feet since I'm in the US). Should be good now
Offline Alex M.  
#212 Posted : 01 June 2018 21:02:40(UTC)
Alex M.


Rank: Advanced Member

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

Was thanked: 125 time(s) in 96 post(s)
Hi Uni,

Is XY plot still being actively developed?

I was hoping you can address the image quality when printed to PDF.

XYIQ1.png

I wonder if this is because in onpaint() you convert all the draw calls to bitmap which is further stored displayed and printed. In image region, for a windows native vector EMF file, i draw the EMF directly within onpaint() which makes sure that image looks sharp on both the screen (94 dpi) and printer (300 DPI)

Regards,

AM
Offline Jean Giraud  
#213 Posted : 04 June 2018 02:55:35(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Alex M. Go to Quoted Post
I was hoping you can address the image quality when printed to PDF.


PDF quality depends only upon the PDF creator. For free, CutePDF is acceptable.
No idea how it renders hard print because I don't have printer.

TESLA.pdf (60kb) downloaded 60 time(s).
Offline Alex M.  
#214 Posted : 05 June 2018 01:07:17(UTC)
Alex M.


Rank: Advanced Member

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

Was thanked: 125 time(s) in 96 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: Alex M. Go to Quoted Post
I was hoping you can address the image quality when printed to PDF.


PDF quality depends only upon the PDF creator. For free, CutePDF is acceptable.
No idea how it renders hard print because I don't have printer.

TESLA.pdf (60kb) downloaded 60 time(s).


You are not using "X-Y Plot Region" but "2D Plot" in attached PDF; my comment was regarding the "X-Y Plot Region"

Offline Jean Giraud  
#215 Posted : 05 June 2018 05:57:02(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Alex M. Go to Quoted Post
You are not using "X-Y Plot Region" but "2D Plot" in attached PDF; my comment was regarding the "X-Y Plot Region"

No matter X_Y region or QuickPlot ... totally identical from CutePDF.

Doublet.pdf (29kb) downloaded 43 time(s).
Offline Jean Giraud  
#216 Posted : 05 June 2018 06:02:37(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
No matter X_Y region or QuickPlot ... totally identical from CutePDF.


Image of the CutePDF as rendered by Adobe Reader DC.

Doublet.PNG
Offline alyles  
#217 Posted : 05 June 2018 15:12:23(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 275
United States

Was thanked: 91 time(s) in 57 post(s)
Jean, looked at zoomed image below from your pdf.

the function text is nice and clear, the plot is pixelated. This is what the issue here.

Untitled.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Alex M.  
#218 Posted : 05 June 2018 18:19:48(UTC)
Alex M.


Rank: Advanced Member

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

Was thanked: 125 time(s) in 96 post(s)
Originally Posted by: Alex M. Go to Quoted Post
I wonder if this is because in onpaint() you convert all the draw calls to bitmap which is further stored displayed and printed.


It does look that bitmap is being displayed / printed instead of draw calls

Code:

        public override void OnPaint( PaintEventArgs e ) {

            base.OnPaint( e );

            if ( this.InEvaluation ) return;

            Image image = new Bitmap( e.ClipRectangle.Width, e.ClipRectangle.Height );

            Rectangle Rect = new Rectangle( new Point( 0, 0 ), image.Size );

            Graphics g = Graphics.FromImage( image );

            g.FillRectangle( new SolidBrush( Color.White ), Rect );

            cs.ChartArea = Rect;

            cs.AddChartStyle( g, ca, xa, ya, y2a, gd, lb, tl );
            dc.AddCurves( g, cs, xa, ya, y2a );
            lg.AddLegend( g, dc, cs );

            e.Graphics.DrawImage( image, e.ClipRectangle );

            g.Dispose();

        }


Uni, if you have time at some point, could you either supersample bitmap, or draw directly in onPaint() similar to what was done in PieChart:
https://smath.info:8443/!/#public/view/head/plugins/PieChartRegion/PieChartCanvas.cs

Thank you,

Alex M.

Offline Jean Giraud  
#219 Posted : 05 June 2018 20:41:39(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: alyles Go to Quoted Post
Jean, look at zoomed image below from your pdf.

the function text is nice and clear, the plot is pixelated. This is what the issue here.


PDF creators recognize what is coded [text, glyphes like in equation editors ...].
The graphs are not codable and treated as image raster. When you zoom up the PDF
documents, the images are simply pixelated. If you zoom up 400%, each pixel is
quadruplated side by side thus the poor looking. If the graph could be interpreted
as an RGB image, then the PDF reader would have to process/zoom the image from
some type of image subprocessor. That simply does not exist with Adobe Reader.
I'm not aware of PDF creator/reader that process images.
In short: Smath is of no concern in there.
From recollection, my "Nuance PDF creator/reader" would zoom up like an image.

Page1 zoom Doublet.sm (110kb) downloaded 35 time(s).


Offline Davide Carpi  
#220 Posted : 06 June 2018 09:58:22(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: Alex M. Go to Quoted Post
I wonder if this is because in onpaint() you convert all the draw calls to bitmap which is further stored displayed and printed.


Yes this is the cause. Try the following (drag&drop the zip in the canvas - just for testing purposes):

XYPlotRegion.zip (70kb) downloaded 33 time(s).


2018-06-06 19_21_47-test.pdf - Adobe Acrobat Reader DC.png

code committed

Edited by user 06 June 2018 20:22:45(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 07/06/2018(UTC)
Users browsing this topic
Similar Topics
X-Y Plot Region Plugin (Extensions)
by ndtma 24/06/2018 06:00:49(UTC)
X-Y Plot Region Plugin Problem (Questions)
by ndtma 20/06/2018 19:38:44(UTC)
27 Pages«<910111213>»
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.