Graph constructions - Сообщения
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)
WroteHow 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
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?
WroteSorry 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
Many thanks for that

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
Where:
Regards.
This is very welcome

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.
Now we need user definable tic intervals.
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).
WroteWe 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.
WroteAs 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.
WroteAs 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.
WroteI 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"

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.
Wroteand 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

Back to the topic. I've implemented special characters:
Other size and color:
WroteI 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)
I am qute surprised and satisfied with what I see in your screenshot

EDIT: I think I figured out now

It looks that you did it in almost no 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.
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


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.
WroteHopefully, this will also be included in version 0.90?
I also hope to finish the work on the Area control ASAP.
Regards.
-
Новые сообщения
-
Нет новых сообщений