Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Mathematics
MATLAB, Maple, Mathematica, LaTeX
How to Stop Matlab from Opening a New Figure in GUI?
Reply to thread
Message
[QUOTE="Jopi, post: 2250129, member: 142063"] Hello all, I've programmed a GUI to read and plot data from oscilloscope. I have a timer function that updates the graph at 1 Hz frequency. What I want to is to add two vertical lines to the same figure that mark the beginning and end times of CCE measurement. For that purpose, I'm using the vline -function from Mathworks file central. The code that I've tried to plot those lines with looks like this: [CODE]if(isappdata(0,'ccestart') && isappdata(0,'cceend')) axes(maingui.mainscreen) vline(getappdata(0,'ccestart'),'--k','CCE Start');vline(getappdata(0,'cceend'),'--k','CCE End'); end[/CODE] Basically it just checks that if there exists values for CCE Start and CCE End, which it then uses as the x coordinates. The problem is that for about the first five executions of the timer function, it does plot them in the correct figure. But after that, Matlab decides to open a new figure for me. I get no error message, or any reason for that. This is very annoying, and I'd love to know how to fix this bug. Or if it is fixable at all. [/QUOTE]
Insert quotes…
Post reply
Forums
Mathematics
MATLAB, Maple, Mathematica, LaTeX
How to Stop Matlab from Opening a New Figure in GUI?
Back
Top