Comments (8)
I am aware of this issue and have attempted to fix it. I think this is a Matlab problem, but welcome to debug and it'll be great to have it fixed.
from callmark.
Okay, I think I understand what is going on.
Each time you zoom or pan - you have the zoom object use a callback which replots the spectrogram. When the spectrogram gets replotted, the axes gets reset, which also resets the zoom limits. So there is no way to zoom out because according to new axes with the freshly plotted spectrogram, you are as zoomed out as possible. The reason "zoom in" still works is because you can always zoom in. However, you cannot zoom outside the constraints of the image.
The simplest way I can think of to deal with this problem is to just avoid the use of the "zoom out" button and include a button that resets the zoom. Thoughts?
from callmark.
Well, the zoom out actually works if you click the lower panel (time series), but not on the upper panel (spectrogram). I think something can be worked out to change the existing way of plotting, or just write something to overload the zoom out button so that there's no need for an extra button.
from callmark.
Ah, dang. I cannot believe I didn't try to do this. Well, my fork has a button now. Let me know if you want me to submit a pull request.
from callmark.
Do you mind changing it to overload the zoom out button? I think it's more user-friendly that way.
from callmark.
I think that's pretty involved and low level.
This was as fast a fix as I could think of and also serves a purpose ...
Sometimes you might actually want to zoom all the way out.
On Aug 12, 2016 5:52 PM, "Wu-Jung Lee" [email protected] wrote:
Do you mind changing it to overload the zoom out button? I think it's more
user-friendly that way.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn254dVmG1uk1bJCddVoB0hMQ6HAokEks5qfOspgaJpZM4JjPhc
.
from callmark.
Yes, and you can do that by double clicking while in the zoom-out mode...
For overloading the button, go to GUIDE -->Tools --> Toolbar Editor, and there you could specify the callback functions :)
from callmark.
OK, looks like the time trace is where I should direct people for zooming. If I overloaded the zoom out button to run the function that zooms all the way out, then they wouldn't be able to zoom partially out using the time trace - so I'm not going to change that. In any case it's good to know how easy it is to overload the button callback. Thanks.
from callmark.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from callmark.