Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 73
Was thanked: 2 time(s) in 2 post(s)
|
Originally Posted by: Jean Giraud all the math regions shows black. How do you isolate M? Edited by user 31 January 2021 07:04:26(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,435 Was thanked: 887 time(s) in 563 post(s)
|
Originally Posted by: netsonicyxf Why X-Y plot can't polt this, while plot 2D can? Hi. In your case use eval() as in the image. After that XY plot works. Best regards. Alvaro.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 73
Was thanked: 2 time(s) in 2 post(s)
|
Originally Posted by: Razonar Originally Posted by: netsonicyxf Why X-Y plot can't polt this, while plot 2D can? Hi. In your case use eval() as in the image. After that XY plot works. Best regards. Alvaro. This works for me, Thank you.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: netsonicyxf all the math regions shows black. How do you isolate M? all black ... select all, background white. Spool to file is most precious in many applications... here disabled.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2011(UTC) Posts: 321 Location: italy Was thanked: 110 time(s) in 94 post(s)
|
In fact it is a behavior that I did not expect. I noticed that you defined "M" symbolically. But it wasn't enough. With "eval" it works but I don't understand why sergio
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,549 Was thanked: 1309 time(s) in 767 post(s)
|
The problem is that the component is trying to determine the type of the expression and it doesn't do it correctly. This case has not yet been investigated by me. The return type is determined without evaluating the expression. When we forcibly evaluate an expression the component correctly recognizes its type. I will try to expand the type of expressions supported. |
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,435 Was thanked: 887 time(s) in 563 post(s)
|
Originally Posted by: PompelmoTell In fact it is a behavior that I did not expect. I noticed that you defined "M" symbolically. But it wasn't enough. With "eval" it works but I don't understand why
sergio
Hi Sergio. My interpretation, but not sure if it's actually the reason why. I think in terms of the Mathematica's Hold[x] instruction, or the equivalent Maple quoting with 'x'; those instructions make x remain unevaluated. In a mathematica procedure f(x), if previously you have x:=2 and call f[Hold[x+3]], f receive 'x+3' but not 5. SMath try to preserve all things unevaluated for make symbolic simplifications in cases of mixing symbolic and numeric calculations. For this is that XY plot and vectorize() function receive arguments unevaluated. In that sense eval() is the opposite to hold(), function that actually I ask for as feature suggestion. The best example of that hold exists in SMath is the way that derivatives are evaluated, like in mathcad: you first define x:=2, then call diff(x^3,x) = 12. Notice that diff() don't receive 8 and 2 as arguments, but x^3 and x, just because you cant differentiate with something like diff(8,2). So, some functions in SMath gets it's arguments with 'hold', and it seems that vectorize() is another example, but others not. Even that, also there are some other internals with an strange behavior for all functions: if you think that you write a function which goes to receive a big matrix as argument M, your first step in the body procedure must to be M:=M for ensure that it goes to be only numerical. Ndtma expose that in an example, but can't remember nor find where. Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,435 Was thanked: 887 time(s) in 563 post(s)
|
Originally Posted by: uni ... This case has not yet been investigated by me. ... Hi Viacheslav: Just pay attention to the error message in the other post of the user with vectorize(): "t - not defined". This t is under an integral symbol. M remains unevaluated because depends on a numeric integral, which SMath try to retain unevaulated how long as can for avoid truncation errors in the same way that SMath do with pi or sqrt(2). So, if vectorize() can't deal with the numerical integral, I guess that it could be better to improve the general SMath way to determine when use the numeric value for all expressions and when retain the procedimental definition. I guess that a way for uniformize SMath behaviors could be given checking Unknows() and IsDefined() procedures that not always agree for all expressions, and define some kind of standard way to check types in SMath. (I remember a post and a function plugin with a GetType() function too) Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: PompelmoTell "eval" it works but I don't understand why sergio eval("expression" - Converts the given expression from symbolic to numeric notation.Being a function evaluation, it assigns to same name or another name.Thus, by same token isolates and that's what X_Y wants, it wants its own stuff [data, f(x), f(x,y) as 'f' for contour] Within a for loop, it has the virtue of isolating internally within the loop itself, then accelerates the for loop result. It has the same effect as spooling to file, not confirmed Bible, just from observation(s) ... forgive my Grand Discours made short. Some functions that have only numeric parameters must be redefined via the eval(,) to convert scalar 'x' for plotting on Quick plot @. For instance: the Hypergeometric Gamma Cheers ... Jean
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 92 Was thanked: 24 time(s) in 16 post(s)
|
Hi, I was reading some old discussions about graphs plugin.. I ran into some posts anticipating the development of "setprop" command for X-Y Plot Region. Is it in beta or is it released (I see it is available in the function lists, but I didn't understand if it is fully developed or still work in progress..)? In case, does anybody have some examples of which parameters can be set and how? I mean, some guideline about syntax to be used? Thanks
Bye
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,549 Was thanked: 1309 time(s) in 767 post(s)
|
This function works partially and does not completely cover the component (you can't change the properties of the curve with it). I do not recommend using it everywhere, because I am planning a more direct control mechanism. You can find a usage example here and here. Edited by user 22 February 2021 17:13:21(UTC)
| Reason: Not specified |
Russia ☭ forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/09/2013(UTC) Posts: 92 Was thanked: 24 time(s) in 16 post(s)
|
Ok uni, thanks for feedback. I will follow your suggestion and wait for the new control method instead.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 26/10/2020(UTC) Posts: 8 Location: Santa Fe
|
Hi, there is way to ratote the X axes values?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 21/10/2016(UTC) Posts: 84
Was thanked: 21 time(s) in 17 post(s)
|
You can set the maximum value on the x axis lower then the minimum value. Is that what you want to achieve? But then the vertical grid lines are not adjusted correctly.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 26/10/2020(UTC) Posts: 8 Location: Santa Fe
|
Originally Posted by: MarB You can set the maximum value on the x axis lower then the minimum value. Is that what you want to achieve? But then the vertical grid lines are not adjusted correctly. No, that didn't work. I need to change the orientation of the text in x axes.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: GermanJG Hi, there is way to rotate the X axes values ? You can rotate ... 1. A discretized function [2 cols] 2. A drawing in 2 cols 3. Smath 3 D CreateMesh 4. RGB matrix 5. plot ortho on isometric X_Y plot
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,023 Was thanked: 1153 time(s) in 739 post(s)
|
Originally Posted by: GermanJG Hi, there is way to ratote the X axes values? I think it is about rotating the tick labels on the x axis such that they don't overlap. Unfortunately this is not possible, at least not exposed to the settings interface. You could, however, change number format and tick spacing to mitigate the problem. If the maxima plugin is an option for you, then you can use the draw library. Blatt1.sm (15kb) downloaded 20 time(s). |
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 26/10/2020(UTC) Posts: 8 Location: Santa Fe
|
Originally Posted by: mkraska Originally Posted by: GermanJG Hi, there is way to ratote the X axes values? I think it is about rotating the tick labels on the x axis such that they don't overlap. Unfortunately this is not possible, at least not exposed to the settings interface. You could, however, change number format and tick spacing to mitigate the problem. If the maxima plugin is an option for you, then you can use the draw library. Blatt1.sm (15kb) downloaded 20 time(s). That is exactly what I need. I tried before doing what you suggest but i need them in a determine spacing and they sometimes overlap. I will try with the maxima plugin. Viel danke. PD: the thanks button throws me an error.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 05/06/2014(UTC) Posts: 348 Location: Colombo Was thanked: 127 time(s) in 82 post(s)
|
Originally Posted by: alyles Updated my snippet for the XY Plot setprop wrappers. I have functions for each property that can be set with setprop.
In latest SS 99.7799, I experience a label error similar to image as shown. Some previous files show this error. |
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka |
|
|
|
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.