How to change dimensions or coordinates of standard view of graphics??

Math123 shared this question 6 months ago
Answered

In standard view

x-axis -9 to +9

y-axis -6 to +6

I want to change these dimension. because in command ZoomIn[] it make standard view by zooming, but when i use ZoomIn[-2,-2,20,10] it make view in one flash not by zooming.

Best Answer
photo

I'm offering you a deal.

Look at the attachment.

Of course, it's up to you to make the deal or not.

And please: ask nothing to this deal, give a answer or not.

The attachment works only with GGB 5.0

you can download the portable version GGB 5.0.570 here

---------------------

To all cracks in the forum

Please do not publish a solution. The point is that Math123 (finally, since more than 1 week) asks his question in a way that he does not get wrong answers (see also here {but has more with the same question in background})

Comments (59)

photo
1

The Standard View cannot be changed.

The standard view is defined by:

  • Center == (0,0)
  • PixelSize for X and Y == 0.02

and is independent of the size of the graphics window.

----------------------------------------

use for an individual standard view the script in the attachment:

call this script with

RunClickScript( buttonStandardView2 )

The changing is "view in one flash" (not soft zooming)

I see no possibility to do this inside a script with the implizite soft zooming of GGB, because the synchronisation with the script is broken. ({ZoomIn(), ZoomIn(<scale factor>)} this not works inside a script in GGB 5)

---------------------------------------

Note:

Please only additional questions for understanding.

Please no additional features as follow-up question (think first, then ask)

photo
2

I'm offering you a deal.

Look at the attachment.

Of course, it's up to you to make the deal or not.

And please: ask nothing to this deal, give a answer or not.

The attachment works only with GGB 5.0

you can download the portable version GGB 5.0.570 here

---------------------

To all cracks in the forum

Please do not publish a solution. The point is that Math123 (finally, since more than 1 week) asks his question in a way that he does not get wrong answers (see also here {but has more with the same question in background})

photo
1

Thank rami for your time and all the efforts. You always rock and given me the best solution.

I see when i move the Point A Graphics View also move and it always adjust the point at the center of the screen.

This Solve exactly one of my problem keep point center and with zoomout also working. But zoomin not working here.

photo
1

Once again thank you so much rami. and the GGB team.How to script a point moving and point is not at center and want this point center also with zoomin as long as slider moving zoomin process keep running?

photo
1

Quote: I see when i move the Point A Graphics View also move and it always adjust the point at the center of the screen.

.

Yes, this ask you since a lot time. But this is not complete, not sufficiently exact, to give you the right answer.

hint: how (not technically) does the center of the graph move to point A?

The other point (zoom) we will talk about it later.

and please no questions: only answers (in this thread)

photo
1

how does the center of the graph move to point A?

A). It moves like adjust the coordinate axes dragging. (This is exactly what i want)

photo
1

no.

A movement can be like a jump/flash or with constant speed or with a (negative) acceleration or..or..or and has a path (or not) and need time or no time.

photo
1

I feel movement like constant speed.

photo
1

Ok

(it's is with negative acceleariton but this is not very important, but more nice)

more important is the time (about) and the time is dependent from something (about, maybe).

photo
1

it's is with negative acceleariton

(Ok i see..! now i understand graphics view moving according to negative acceleration of point it depend on the scale factor of coordinate axes.)

Can you pls describe more.

photo
1

no and yes

correct answer: the time is constant (about 1 seconde) the speed is dependig of distance (more distance more speed, so that after about 1 second A is in the centre of the graph ).

.

and the almost last question: what ist the path of movement?

photo
1

what ist the path of movement?

I don't understand the question can you pls explain. What is meant by path?


photo
1

I mean the description of the path/route from A, while the center of the graphic view is moved.

A Segment (from, to) a wavy line or an arc or or or?

photo
1

I feel it is smooth movement of graphics view.

photo
1

no this is not the path, this is the speed and time.

path = the way,the route in a static meaning (as if on a map: for example: The route/segment from house A as the crow flies to house B)

Later, when we will talk about ZoomIn() the path is of great importance (maybe, if the solution is in 3D)

photo
1

It can Be wavy, straight line and curved.

photo
1

lol: yes, but what (of this 3) is the reality in the applet centerPointSoftProt.ggb (above).

The answer is more simple as you think actually.

photo
1

Rami it depend how I move the point. But it curved in applet.

photo
1

No (and a little bit yes)

correct answer: the path is alway the straight line between the actually position of A in the Graphic and the center of the Graphic.

please check (maybe not so easy to do this)

photo
1

Can you pls how can I get notification in my mobile and laptop for geogebra answers. Always I need to look question for the answers.

photo
1

Yes you are right this path is straight.

photo
1

Quote: "Can you pls how can I get notification....", sorry no, I have the same probleme. I use the notification by mail, but it is usually much too slow.

---------------------------------------------------------------------------------

I think now all important questions are answered.

I ask you to read this thread again and make your requirements (without ZoomIn) in form of a request (in this thread, just as an exercise).

Afterwards I will disclose the solution and answer questions about it.

Afterwards we can extend the solution (e.g. ZoomIn but also other)

----------------------

This (the formulation of the request) takes time, I'll be available for the next 6-7 hours and check about every 30 minutes if you already have an answer.

photo
1

Rami Let me check this in my project.

You are the color and real gem of GGB team . Your support and solutions are awesome.

photo
2

Thanks,

I think there are some people in the forum who are doing great and a lot things.

Some are specialized in math, or general problems in different environments, bugs, scripts, JS, laTex, scool, etc. For myself I feel me strongly in unusual solutions and scripts (and avoiding scripts) but less in mathematics.

photo
1

Thanks rami it worked very well in my project.

Now i can ask second part of my question, parallel i applied zoomin and zoomout with that it conflict by centering command. mean software is trying both things zoomin and centering same time fluctuation occurred.

photo
1

Addendum to my last post:

Which I have culpably forgotten:

The greatest thanks belong to the active administrators. Without them this forum would not work. And they also answer many threads with very high quality.

photo
1

Quote: "Now i can ask second part...."

You remember: we have something like a "deal". For me, it's not closed yet. From my point of view the only thing missing from your side is:


I ask you to read this thread again and make your requirements (without ZoomIn) in form of a request (in this thread, just as an exercise). 
I will not work with you on 2 different questions/"deals" at the same time.

But maybe someone else is willing to answer your intended questions (in a new thread).

.

photo
1

It solved my problem of centering point but without zoomin and it looks very beautiful. many thanks .

Do i need to post a new thread for ZoomIn with Centering Problem, or not?

photo
1

quote: "Do i need to post a new thread.."

yes

but remember: for me "the deal" is not in balance

(but that is not a problem for me).

photo
1

:-D Pls tell me how the "Deal" balance.

photo
1

Context: with this thread I want to show you how to describe a problem to be solved without saying how to solve it. One way is to describe what should happen on the screen. We did that (more or less) together.

Now you should formulate/summarize this description so that it could be used as a question in a (virtual) thread. (don't be fooled: it is more difficult than it seems at first).

photo
1

Yes rami i have learnt many thing, i am not very good at in english. but i will try my best in future to fully describe the problem.

photo
1

The future is now.

photo
1

If i am not wrong. You are saying i need to describe the complete situation of my problem/question once again as an exercise which i asked in this thread? which we discussed in this whole thread.

If any thing else pls let me know.

photo
1

yes but not complete, only the situation of the applet "CenterpointSoftProt.ggb" (above)

photo
1

Best of Luck for me...!

Trying to explain you the situation in "centerPointSoftProt.ggb" in next comment.

photo
1

:-)

photo
1

If i move the position of point A graphics view adjusted coordinate axes itself by negative acceleration and coordinate axes move as it dragging, also keep point at the center of the screen (like center of the screen will match the point in a straight line pattern).

photo
1

good.

(optional) try to formulate it in a way that a 10-year-old child can understand.

photo
1

I have tried so many things, but not working.

photo
1

OK

Suggestion:

"I am looking for a solution that brings a manually movable point back to the center of the graphic in a smoothly way (about 1 second)."

photo
1

Technical solution see attachment.

but the solution is insufficient: "A" does not go to the center when the coordinates (instead of point A) are moved or when the size of the window changes.

Solution approach: Whenever the above objects (coordinates or size) change, then corner(2) (guaranteed) also changes

photo
1

Pls see attachment another solution point is always at the center of the screen move the graphics.

photo
1

sorry, your solution not works in my environment (windows 10, GGB5.0 or GGB6.0WEB)

What is your environment?

photo
1

GGB 6 Classic, Win 10.

I have always problem with GGB 6 classic in saving and opening project.

You need to drag the project file in applet. I always do this to open applet.

photo
1

Question: and it's works? so you can move point A and he go back (smootly) to the center?

----------------

I open the ggb-file in the same way as you (not a nice GGB-Solution)

photo
1

No rami. your strategy is superb and simple. it helped me a lot in future projects. I have opened another thread how to add .mp3 sound file from my computer to GGB. Pls answer it also

photo
1

Are you interested in fixing the lack (move coordinates or size) in my solution?

Do you want to try it yourself ? (crate a small script in a new object C_1=Corner(2)), extremly similare as the script in A.

photo
1

Yes i am. I try . also you can share the solution. Many thanks for the previous solution.

photo
1

see attachment

photo
1

I think it is time to end this thread.

Thanks also to you.

You help me learned something new: It must be quite difficult for my spiritual guide (I am a little bit spiritual) to advise me. Lol.

photo
1

Rami i can not see the difference/benefit of using extra C_1 .

photo
1

move the coordinates, not point A (click and hold background and move or zoomIn/out with scrolling mouse)

or

Change the size of grafic (shift the size of algebraview or change the size of Windows10 windows of GGB)

do this with boot versions.

The solution is not perfect (not smoothly) but I think good enough

photo
1

hmm.. That's great

Now the deal closed for this question or still open?

photo
1

For me this thread is closed, we see us in one of our next threads.

(Note: with mp3 sounds in GGB I have no experiences)

photo
1

Thanks for your time, efforts and sharing your expertise. but still 2nd part of question left of zoomIn/Out. which needed to make project more immersive.

photo
2

for this open a new thread.

And please: try to start with a good question without a solution and without how.

photo
1

I have already opened thread for this yesterday https://help.geogebra.org/t...

photo
1

:frowning: but is not a problem: maybe in your next life.

photo
© 2020 International GeoGebra Institute