Pan and zoom toolbar issue - Matlab 2016a - matlab

I added to a Matlab GUI Pan and Zoom toolbars so I can move over the image presented in the axes.
After I mark a point (and adding coordinate text) and use the pan and/or zoom the marked text is shown outside the image Axes all over the GUI (it move as I pan and zoom).
The Axes, pan and zoom toolbar and the ui.figure 'Clipping' property is set to on.
There is no code as I use the toolbar and therefore how can it be solve?
Image example (White represent the outside of the Axes):

Related

Permit circle to be resized by not directly moved

I'm working on a project where we need to create Search Rings. These are defined as a lat-long/radius, overlaid on a map of the Continental USA.
The desired implementation is a marker, useful for close positioning of the lat-long (or even updating, via popup + jQuery) with an "attached" circle.
Desired behavior:
when the marker is moved, the circle is dragged with it, and repositions itself with its center coincident with the marker's position (this is completed)
the circle's edge? may be gripped and resized, thus changing its radius.
Current issue: when a L.Circle is marked editable, it's both resizeable and directly movable. This is apparent by the gripper boxes on the outside of the circle together with the box at the center of the circle. How do I disable/hide that center gripper?
As always, thanks in advance.

How to have different functions execute when tapped at different parts of the View?

I have a view (Circles) that displays a group of circles at different coordinates. I have loaded the coordinates of the circles through a single parse query. I am able to add a tap gesture recognizer that executes a function when the view (Circles) is tapped.
(E.g. If i tap on one of the circles, all the circles change from color blue to red)
However, I am having trouble figuring out how to have different functions execute depending on the circle (different coordinates) I tap on, rather than having a function execute in unison whenever any circle is tapped.
(E.g. If I tap on the circle at the top-left corner, it turns blue to green, while if I tap on the circle at the bottom-left corner it turns from blue to red)
I am thinking of having a system that does a function if the tapped coordinate is x and y and so on. However, I do not know how to go about it as of yet and would appreciate any help I can get.
The easy (and elegant) way to do this is to make each circle its own view, and give each one its own tap gesture handler. However, if you want to keep your current approach, draw each circle as a UIBezierPath, which has a containsPoint() method that you can use for hit testing.

Matlab zoom or pan an image while 'Clipping' is 'off'

I try displaying image with non standard aspect ratio (width>>height) in my GUI.
But when I zoom-in the image is clipped to the original axes position. I've managed to solve this problem by setting the 'Clipping' property to 'off'. But now for some reason the pan and zoom tools are only active while the mouse hovers over the initial position of the image (the position it had before I zoomed in).
Here is a piece of code for demonstration (I'm using Matlab 2011a, but also noticed the problem in other versions):
I = repmat(imread('cameraman.tif'), [1 20]);
figure,
h=imshow(I);
set(h,'Clipping','off')
(Just run those lines and try zooming in once or twice. The zoom/pan tools will only work in the area where the image initially was.)
Is there a way of zooming in without clipping the image, and yet getting the pan and zoom tools to work all over the enlarged image?

iPhone: Properly scaling lines / circle drawn in drawRect

I am drawing custom annotations over an image (circle, arrow etc) in my iPhone app. I allow pinch zooming & drag gestures for these annotations. These annotations are custom made AnnotationView with drawRect drawing circle / line etc.
I am finding issues with zooming
Try 1: The zoom is applied by scale transformation to the AnnotationView. Result: the annotations become blurred.
Try 2: To avoid blurring, I added redrawing with co-ords multiplied by scale factor instead of directly manipulating the transformation. This works without blurring, but, soon the circle etc goes out of the views bounds & is clipped.
I could use a bigger frame (size of full image), but, I am keeping the smaller frame so that I can easily move it back to position when it is dragged out of the window by user's zoom / pan gestures.
Question:
Is there a better way to manage this? I would like to zoom without blurring, while also having the ability to move it back to position if it is dragged out of original image bounds.

Volume UIControl

I need a control in the form of a circle, which will change the volume by closwise and conterClockwise moves
Analog volume slider
Does anybody met this control?
This is for OSX Cocoa: http://www.sticksoftware.com/software/CircularSlider.html
But regulary theese controls are vertical sliders like controls with different style.
After you tap the UIView the control observe the vertical distance between the tappoint and the UIControl. This works great on desktop. But if you work with small places the vertical slider will be better choice.