I have matlab 5.3. I need to create a project with GUI.
There will be 2 axes. When user click the button he will be able to
load an image. the image will be displayed in the 1st axis (but lways
the same). The second axis will be for other purpose. Now I wrote as
a callback for the button:
[fname, fpath]=uigetfile('*.jpg', 'load a file');
...multiple plots in same axes of a matlab gui, (MCCabe Thiele Method for binary distillation)
I am trying to develop a GUI to find out the no of stages in a binary distillation through McCabe Thiele Method. I wish to plot more than two plots (for every loop cycle) in the same axes of my Matlab GUI. Moreover, I want none of them to be replaced by the preceding one. I tried but only the first two plots are visible. Below is the code which will make my query much clear. (Axes tag: stages)
%% loop 1 for no_of_stages
title(handles.stages,'McCabe-Thiele Method - No of stages...Multiple y-/x-axes within one GUI axes.
I would like to plot several axes-objects and use different y- and
x-axes's within one parent axes in a GUI. This could normally be done
by the plotyy-function or by low-level axes/get/set-functions.
Unfortunately neither of these approaches seems to work within a GUI
figure. Any ideas?
In other words; Do Matlab GUI support plotting with multiple
y/x-axes's within one axes?
Jo Arve Repp wrote:
> I would like to plot several axes-objects and use different y- and
> x-axes's within one parent axes in a GUI. This could normally be
> by the plotyy...Matlab GUI problem: plot in GUI axes from callback from the serial port
I build up a GUI with GUIDE in Matlab with some buttons and an axes.
When I plot in the axes from button callback, then it works. But when
I want to plot in the axes from a callback from the serial port
(BytesAvailableFcn), then it generates a new figure and plot it inside
that. I think the problem is that from the serial port callback there
is the wrong current figure (I checked it with gcf during debugging),
but when I try to change the current figure with figure(...) or
set(..) it doesn't work.
Can anyone help me?
...GUI with multiple axes
I have two axes objects in my gui, handles.Plot1 and handles.Plot2. I need to know how to switch back and forth between these to add various features and overlays as my code progresses. I tried both
but i receive the errors:
??? Error using ==> axes
Invalid axes handle
??? Error using ==> set
hggroup handle passed to 'CurrentAxes' property - valid axes handle required
I've checked the handle tags several times and i am driving myself crazy! thanks
> I have two axe...GUI Multiple Axes
Can somebody show me or tell me how to make a simple GUI with one
pushbutton that plots in one axes and another pushbutton that plot on
another axes, all on the same figure.
I am trying to use axes(handles.axes1) but it doesn�t work. Do I have
to do something special with the axes???
"Martin" <firstname.lastname@example.org> wrote in message
> Can somebody show me or tell me how to make a s...Multiple Axes GUI
I'm having a problem to design my GUI.
I have a GUI that has just one axes, to show a plot depending on the various inputs.
To make it look better I've put another axes, to load a image file there, but since I made this change my GUI is not working properly.
When I press the button "plot", the graph appears in the wrong axes (of the image).
First, I put this code before plotting what I want:
It plots just one time, when I try to plot again it show me this error:
>> ??? Reference to non-existent field 'axes'.
>>...MatLab GUI axes
1. Load in an image using uigetfile.
2. IMG = imread(FullPathName);
It displays the image fine in my axes I want it.
But after I loaded the image again, it display the image on
the next axes.
Is there a way to fix this, even though I tell it to display
"H H" <email@example.com> wrote in message
> 1. Load in an image using uigetfile.
> 2. IMG = imread(FullPathName);
...Multiple panes in a Matlab GUI?
We are using Matlab to analyze/display rocket performance data. We
would like to build a Matlab GUI that allows the user to view
different "panes" of information by clicking on tabs at the periphery
of the GUI. One pane might show plots and have a corresponding tab
labeled "Graphs", whereas another pane might show textual information
and be accessed by a tab labelled "Parameters". We are looking for
the type of multi-pane functionality that is found in, for example,
Excel or Labview.
We are relatively new to Matlab GUI development and would greatly
appreciate any...Problem on a GUI with multiple axes
Hi! I'm having a problem using Matlab. I want to make a GUI that can
load several images (one after another, user chosen, to display on
several axes on the same GUI).
If I use this (on a m file called ax.m):
%Read DICOM file
I = dicomread('hsj.dic');
%Get frame 60 to variable F
%Define axes to use as the axes with tag axes1
%Get axes to run with axes1
%Show F in axes
I get this error:
??? Error using ==> axes
Invalid object handle.
Error in ==> ax>pus...Clear multiple axes at once in a GUI
I have a GUI plotting multiple axes which all overlay one another to look like one plot on a GUI. I have a "CLEAR" button which I want to clear ALL of the axes and ALL legends inherent to those axes. The axes are referred to as members of an array:
handles.data_axes(4) ... and so on.
The legends are referred to similarly.
The callback for my CLEAR button is:
Currently, ...multiple panels in gui by matlab
I have multiple buttons and I need to add panel to each button, in other words when if I press on the button, its panel will appear.
I don't know how to add multiple panels to the same gui, if any know how please answer me.
This should get you started:
% Open a new figure window. This will be the panel.
h = figure;
% Set properties. If you want a modal window, that is, if you don't want the areas outside the window to be clickable, you should set the 'WindowStyle' property to 'modal'.
set(h,'MenuBar','None',...Circular Axes in MATLAB GUI
Hello, All. I'm currently in the process of adapting a multiple object tracking task from Psychtoolbox in MATLAB's GUI for portability reasons. However, one thing I've noticed that I'd like to fix is what happens when circles overlap. In PTB, since the circle was precisely that, the overlap was just like that of two circles. However, in MATLAB GUI, I've actually imported the circles as images into an axes and then had the axes move about the screen. As you can imagine, when the axes overlap, sometimes the corners of the of the top axes cut into the circle, and you notice th...Multiple Plots on MATLAB GUI
Hey does anyone know how to create multiple plots on one axes in a
Any suggestions or snippets would be greatly appreciated.