Graph constructions

Graph constructions - Сообщения

#1 Опубликовано: 17.02.2009 20:51:43
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

SMath Studio pages can contains 2D and 3D graphs.


Plot canvases can be manually resized:


To plot the Graphs user can define matrices of a points (2 columns matrices for 2D and 3 columns matrices for 3D) instead of the math functions:

(download an example)
#2 Опубликовано: 30.08.2009 02:08:20
Greg Locock

Greg Locock

0 сообщений из 53 понравились пользователям.

Группа: User

Use the systems of equations icon in Functions to get multiple curves on a plot
#3 Опубликовано: 13.09.2009 13:24:18
mar

mar

0 сообщений из 13 понравились пользователям.

Группа: User

How do you resize the canvas without changing the axis limits? In other words I just want a larger version of that is already in the canvas, ie lock the down the axis limits while resizing. Also would like the ability to set the axis limits directly instead of just using graphic handles.
#4 Опубликовано: 13.09.2009 13:31:11
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello mar,
Wrote

How do you resize the canvas without changing the axis limits? In other words I just want a larger version of that is already in the canvas, ie lock the down the axis limits while resizing. Also would like the ability to set the axis limits directly instead of just using graphic handles.


Chosee "Scaling" from the palete. Then, with the scroll mouse wheel you can scale both axis (with the left button you can move). Pressing CTRL or SHIFT you will scale x or y axis separately with the scroll mouse wheel. The 2D and 3D manipulation and configuration will be improved sooner or later.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Опубликовано: 13.09.2009 13:44:11
mar

mar

0 сообщений из 13 понравились пользователям.

Группа: User

Sorry I do not understand. Where do I find "scaling" and from which panel.

Update:
Ok now I see what you mean. I had to go and get a mouse with a scroll wheel. The track pointer & track pad I was uisng does not have scroll wheel. Is there a way to access the scroll wheel actions when you don't actually have a scroll wheel?
#6 Опубликовано: 13.09.2009 14:14:15
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Wrote

Sorry I do not understand. Where do I find "scaling" and from which panel.

Update:
Ok now I see what you mean. I had to go and get a mouse with a scroll wheel. The track pointer & track pad I was uisng does not have scroll wheel. Is there a way to access the scroll wheel actions when you don't actually have a scroll wheel?


That is, actually, a problem. By choosing "Scale" from the "Plot" pallete you can replace mouse wheel by pressing left mouse button and moving at the same time. This will rescale both x an y axis at the same time. Separate scaling is not possible without mouse wheel (I think). This is introduced in the recent version. You can try to use some scale factor (multiply or devide with same constant) for the axis you are interested in, in order to see the plot in the way you find it suitable.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Опубликовано: 02.01.2010 10:57:08
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Prof. Gilberto Urroz added a Tutorial on the Wiki Examples of 2D&3D graphs v0.85

Many thanks for that
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#8 Опубликовано: 18.01.2010 09:18:48
trucjensen

trucjensen

0 сообщений из 5 понравились пользователям.

Группа: User

Hi

It would be excellent, if it was possible to change the scale on the axis'es, to make them "human readable" :-). Instead of the binary scale "128, 256, 384, 512..." I would prefer "100, 200, 300...".

It is difficult to read, which x-value corresponds to at given y-value. I know it is possible to achive this by using the solve-function, but my students must be able to read the value manually...

Yours

Michael
#9 Опубликовано: 17.08.2010 20:15:57
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

SMath Studio 0.90 will be able to draw strings on the Plot Control canvas:



Where:
  • Column 1: X-coordinate;
  • Column 2: Y-coordinate;
  • Column 3: Text to draw;
  • Column 4 (optional): Font height;
  • Column 5 (optional): Color of the text;

    Regards.
  • #10 Опубликовано: 18.08.2010 02:05:26
    Radovan Omorjan

    Radovan Omorjan

    325 сообщений из 2052 понравились пользователям.

    Группа: Moderator

    Hello Andrey,

    This is very welcome . I remember, I waited this to be in Mathcad for many years. I think this is still not possible (not sure, but anyway it is not important anymore).

    I hope that line thicknes and point size options will be introduced in SMath sooner or later, including representing plots with lines and points on the sam graph. However, it crossed my mind that point plots can be made by the features you explained. We can use at least three columns X, Y and the third colum with the same character say "x". Then we could have a "plot" with points. Hmm..., I was thinking something. I think there is no matrix function which will fill the matrix with the same elements, say a character. Never mind, we could use "for" loop here. I hope I am right about all of this.

    Regards,
    Radovan

    EDIT: It seems I am not quite right about "plotting" characters. Based on the exmaple picture, it seems that the character will be placed on the graph with its upper left corner at the x-y coordinates given.
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    #11 Опубликовано: 18.08.2010 06:50:40
    Greg Locock

    Greg Locock

    0 сообщений из 53 понравились пользователям.

    Группа: User

    Excellent work. I'm guessing that the structure has to be called 'plotter'?

    Now we need user definable tic intervals.

    #12 Опубликовано: 18.08.2010 07:17:55
    Andrey Ivashov

    Andrey Ivashov

    2269 сообщений из 3729 понравились пользователям.

    Группа: Super Administrator

    Hello.

    Greg Locock, no, "plotter" is just a variable to store all the graph commands (i.e. text, functions and dots drawings) - you can use any other or not to use it at all (by putting all the commands directly on the graph's placeholder).

    Wrote

    We can use at least three columns X, Y and the third colum with the same character say "x".


    Good point! I've tested it and see an observation here. This is how it looks like today:

    As you can see, centres of the chars are not in the right places and actually I can't imagine a way to find out the right centre of the symbols (note, that f.e. "x" char has different centre point depending on Font name). As a solution I think to handle some special chars (f.e.: "x", "*", ".", "o") to draw them correctly.

    Best regards, Andrey Ivashov.
    #13 Опубликовано: 18.08.2010 07:32:07
    Andrey Ivashov

    Andrey Ivashov

    2269 сообщений из 3729 понравились пользователям.

    Группа: Super Administrator

    Seems Matlab developers have chosen the similar way - http://www.engin.umich.edu/group/ctm/extras/plot.html
    #14 Опубликовано: 18.08.2010 07:51:37
    Radovan Omorjan

    Radovan Omorjan

    325 сообщений из 2052 понравились пользователям.

    Группа: Moderator

    Hello Andrey,
    Wrote

    As you can see, centres of the chars are not in the right places and actually I can't imagine a way to find out the right centre of the symbols (note, that f.e. "x" char has different centre point depending on Font name). As a solution I think to handle some special chars (f.e.: "x", "*", ".", "o") to draw them correctly.


    Yes, that's I was thinking about. As I understood you well, if the third column is a single special character like (f.e.: "x", "*", ".", "o") then you can adjust the position of the character in order to be its center on the given coordinates. Why not, that would be Ok with me. I do not know if you can make a special devoted function for plotting points, character. I suppose not because you would have done that already. For instance, if there would be a function like this:

    r:=plotter(X,Y,"char",size,"color" )

    and to put just "r" in the graph - that would be, I do not know, just great

    Regards,
    Radovan

    EDIT: Yes, you are right about Matlab (I wrote this just before your comment). Besides Matlab, many other software uses similar functions to make plots.
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    #15 Опубликовано: 18.08.2010 08:57:40
    Andrey Ivashov

    Andrey Ivashov

    2269 сообщений из 3729 понравились пользователям.

    Группа: Super Administrator

    Wrote

    As I understood you well, if the third column is a single special character like (f.e.: "x", "*", ".", "o") then you can adjust the position of the character in order to be its center on the given coordinates.


    Actually I will draw my own geometry primitives instead of the Font chars - this is the only way to avoid wrong locations.

    Wrote

    I do not know if you can make a special devoted function for plotting points, character. I suppose not because you would have done that already. For instance, if there would be a function like this:

    r:=plotter(X,Y,"char",size,"color" )

    and to put just "r" in the graph - that would be, I do not know, just great


    Do you think it will help? Please, see the screenshot:

    For me, these functions will not make it easier to draw text. But I can be wrong.

    P.S.: Ah... now I know, that in GB word is "centre", but in US - "center" In future will use US variant.
    #16 Опубликовано: 18.08.2010 09:51:06
    Radovan Omorjan

    Radovan Omorjan

    325 сообщений из 2052 понравились пользователям.

    Группа: Moderator

    Hello Andrey,

    I think we understood eachother about the character location and coordinates, and sorry for the "center"and "centre" - I interchange them often.

    Regards,
    Radovan

    P.S. On the basis of an example you sent me, I was trying to make plots with small circles. I've given up because it seems to me to complicated at the moment.
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    #17 Опубликовано: 18.08.2010 10:24:41
    Andrey Ivashov

    Andrey Ivashov

    2269 сообщений из 3729 понравились пользователям.

    Группа: Super Administrator

    Wrote

    and sorry for the "center"and "centre" - I interchange them often


    Don't be sorry, it's my mistake - I even didn't know about these differences Do you know what kind of language US/GB English preferable in the web? I mean what should we use in the forum?

    Back to the topic. I've implemented special characters:


    Other size and color:


    Wrote

    I was trying to make plots with small circles. I've given up because it seems to me to complicated at the moment.


    Now we can create any circles we need!

    File: textInGraphsSpecialChars.sm (do not try to open it in earlier then 0.90 versions)
    #18 Опубликовано: 18.08.2010 11:23:08
    Radovan Omorjan

    Radovan Omorjan

    325 сообщений из 2052 понравились пользователям.

    Группа: Moderator

    Hello Andrey,

    I am qute surprised and satisfied with what I see in your screenshot . Did not quite understand what is happening in the "for" loop, but never mind.

    EDIT: I think I figured out now . First row of zeros confused me.

    It looks that you did it in almost no time . That's something SMath is missing for a long time.

    Looking forward to see it in 0.90

    Regards,
    Radovan

    P.S. About GB/US I hardly know what the exact differences are. I am writing the words which are on my mind without to much thinking.
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    #19 Опубликовано: 18.08.2010 11:41:32
    maweilian

    maweilian

    5 сообщений из 103 понравились пользователям.

    Группа: User

    Andrey,

    I also like what I see. It also appears that you have used a collapsible region. In this case, it helps immensely to hide the clutter involved in defining the points on the graph. Hopefully, this will also be included in version 0.90?

    Regards,
    Will
    Will Massie Mechanical Engineer Oregon, USA
    #20 Опубликовано: 18.08.2010 12:15:43
    Andrey Ivashov

    Andrey Ivashov

    2269 сообщений из 3729 понравились пользователям.

    Группа: Super Administrator

    OK. To provide some testing I've decided to release alpha version:

    SMathStudioDesktop.0_89_2.Setup.msi (Date: 18.08.2010. File size: 1.35MB)
    SMathStudioDesktop.0_89_2.Portable.exe (Date: 18.08.2010. File size: 17.3MB) - .Net Framework 2.0 doesn't required

    Most important changes:
    - plenty of bugs fixed;
    - Several physical constants added;
    - Area activated in the Insert menu. Important! You can open and save files with collapsed or expanded Area, but you cannot add any new items, move or delete already existed items and there are several other limitations while one or more Areas on the page collapsed! To make any changes you must expand Area(s)!
    - Added ability to draw text on the Plot canvas.

    Wrote

    Hopefully, this will also be included in version 0.90?


    I also hope to finish the work on the Area control ASAP.

    Regards.
    • Новые сообщения Новые сообщения
    • Нет новых сообщений Нет новых сообщений