Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mouseposition]

The tag has no usage guidance.

1
vote
1answer
63 views

Problem with MousePosition after rotating a graphic

i've been doing a dynamic matrix plot using MousePosition but i need to rotate the plot 45°. but when i do that the MousePosition lose coordinates. Any idea of how to do the rotation keeping ...
1
vote
1answer
50 views

Legend display on mouse hover over region made using RegionPlot

Is there a way to label a region plotted using RegionPlot automatically, i.e. for the legend to appear inside the region without having to specify coordinates? ...
1
vote
0answers
25 views

Why does dragging a point with a Tooltip interfere with MousePosition[“Graphics”]?

Consider the following toy example of EventHandler used to implement dragging a point around in a Graphics: ...
1
vote
1answer
46 views

Using Mouseover to change colour of the FilledCurve

I would like to change colour of the FilledCurve and display little table when mouse pointer goes over the area between curves. My code is shown below ...
9
votes
3answers
373 views

Coloring a square grid by clicking

I want to make an interface where a user can fill in a square grid by clicking. Some processing will then be done with these pixels to produce a new picture. How can I make this clickable interface? I ...
0
votes
0answers
45 views

Mathematics behind 3D point dragging

In several answers to questions related to dragging a point in 3D (for example: How can I select one out of several Graphics3D objects and change its coordinates in Mathematica?, or How can locators ...
5
votes
2answers
168 views

How to create 2d trajectory by moving mouse over plot

When I move with the mouse over a plot with a given plot range I would like to store the coordinates of the corresponding trajectory in a list and plot it. I have seen that ...
1
vote
1answer
52 views

Use Mouseover on one Graphic (expression) and the result shows up on another Graphic or Plot (over)

Mouseover is defined as Mouseover[expr,over]. I have a plot on the left and a graphic on the right. Can I use ...
0
votes
0answers
107 views

How to read raw mouse data in v.7 (time-tagged relative position at highest rate and resolution)?

I would like to use the innards of an optical mouse (Microsoft BlueTrack) to sense the surface velocity of an arbitrarily-rotating sphere by feeding the x and y relative position changes (along with ...
12
votes
1answer
284 views

How to create Right-Click ActionMenu at mouse position?

I have a Grid and need to enable some actions on individual values. For this I want to use an ActionMenu that shows on right-...
1
vote
0answers
45 views

Showing truncated surfaces ; $\,$ Reading off projected 3D points by mouse pointing;

Two questions: Wish to remove parts of the surface outside the pie cutting planes and show the remaining truncated object/intersection edges without cutting planes. ...
3
votes
2answers
169 views

Hovering over specific coordinates on a picture

I'm working on a small function which can be used so that when the user hovers over certain coordinates in a LocatorPane, these coordinates can be checked against a separate list of coordinates, and ...
2
votes
1answer
116 views

Using IF commands in a Dynamic Module

Is there a way to use a functional If command in a DynamicModule? I have a code which runs a car driving up a street using ...
8
votes
2answers
211 views

Panning with Mouse + Moving A Curve

I would like to be able to move any curve (for example f(x)=x, or g(x)=x^2) by mouse dragging the particular curve. I would like to keep the functionality I have for panning across the screen in ...
7
votes
1answer
177 views

How to get information from map using mouseover?

Assume I have the following zip code data: ...
6
votes
0answers
108 views

How to preview a list of images by sliding the mouse?

I'm trying to dynamically scrub over a list of images like in iphoto. Unfortunately, when the mouse moves from one side to the other, it's skipping frames which is confusing: When the mouse runs off ...
1
vote
1answer
97 views

Display coordinates of pointing device in VectorPlot

I want to show the coordinates of the (mouse) pointing device as I move the pointing device over the VectorPlot without a (right or left) click. I have tried ToolTip and MousePosition but I cannot get ...
3
votes
2answers
79 views

How to get highlighted text from event

I want to do the following: Given a text in a Mathematica dynamic module "at runtime". If some text is selected with the cursor/mouse, after the mouse button release, get the selected text. Thank ...
3
votes
0answers
213 views

Changing scroll range for mouse wheel

Is there a possibility to change the range for scrolling with the mouse wheel in Mathematica? In ScrollingOptions I couldn't find such an option. I played around ...
0
votes
2answers
117 views

MousePosition and While loop Control, maybe Dynamic in While statement?

I would like to write a simple code that samples mouse position as frequently as the system can handle (with minimum dt) starting when the mouse position leaves a region and ending when the mouse ...
1
vote
1answer
159 views
2
votes
1answer
156 views
4
votes
2answers
187 views

Using MousePosition on the entire screen - Screencast with Linux

In order to record animations more easily while using Mathematica on Linux, I would need to know how to get the position of three clicks. The following picture (main part generated by ...
2
votes
1answer
380 views

Why is this expression being held, and how can I evaluate it?

I can't figure out why an expression isn't evaluating, even though there's no Hold* in its FullForm: ...
8
votes
3answers
2k views

Hovering mouse cursor over a plot to display a “corresponding” point in another plot

I'm trying to reproduce a variant of this view, where hovering the mouse over a point highlights its "corresponding" point on all plots: In my case, the additional complexion is that the x-axes are ...
2
votes
1answer
135 views

Strange response with dynamic texture and MousePosition

I built a cubic, then use MousePosition together with GUIScreenShot to take a floating region with fixed size (200*200) on the ...
3
votes
3answers
420 views

Extracting the coordinates of a point of interest from a ListDensityPlot

How can I extract coordinates from a list density plot. Example plot of interest: I need to place two points on either side of the center white circle and calculate the distance between them. My ...
4
votes
2answers
215 views

Restrict MousePosition to specific Graphics object

I have a problem using MousePosition. I want to restrict the value returned by MousePosition to a specific Graphics object. ...