matlab-figure Questions
1
I am using Octave 4.2.1 portable under Win 10.
I have several plots in a single chart, with a single y axis, each one created with a plot(...) sentence.
I want to add a plot in a secondary y axis ...
Timbering asked 2/1, 2019 at 7:43
2
Solved
I move around from a company site to another a lot. At any given day, I might have just my laptop or as many as four monitors. With multiple monitors, I don't know which monitor I will choose to us...
Lanna asked 8/6, 2016 at 14:20
1
Solved
I have a figure in MATLAB. Then I add a text to it by typing,
b = text(0.5, 0.5, 'Detector action', 'Rotation', -70, 'FontSize', 25);
But the text goes behind the figure (See below),
I also tr...
Richardo asked 20/12, 2018 at 17:31
1
Solved
I want to check if some axes have been cleared or not, based on which some further task is to be performed. I use cla to clear some axes, not delete. For example:
figure
hs1 = subplot(121); plot...
Foresaid asked 13/12, 2018 at 19:28
2
Solved
I have a plot with two lines and two different x-axis (different data units), which I plot like the following.
My problem is that I would like to draw the top line of the box black as well (horizo...
Literator asked 21/5, 2015 at 11:15
3
Solved
Let's say I have this very simple loop
for i=1:10
[xO, yO, xA, yA, xB, yB, xC, yC] = DoSomething(i);
line([xO,xA,xB,xC],[yO,yA,yB,yC]);
pause(0.1);
end
The coordinates that I am plotting corr...
Boardwalk asked 3/12, 2018 at 10:28
1
Solved
After installing R2018b, the first figure I opened contained an interesting message (shown in blue):
The reason it's interesting is because it contains features like text wrapping, transparency,...
Attraction asked 19/11, 2018 at 15:59
5
Solved
All I want to do is make the width greater and the height smaller. I'm just doing raster plots but this question applies to any MATLAB figure. I can manually resize it using the figure directly whe...
Danieladaniele asked 3/3, 2011 at 15:47
4
Solved
I would like to show a non-uniform colorbar as in the first picture. I have tried the code below. 'mycamp4' is a colormap manually saved. The result is shown as the second figure. The number 0.1 an...
Reply asked 16/12, 2013 at 14:55
1
Solved
Consider the following MATLAB code:
text(0, 0, 'factory');
xlim([-1, 1]);
ylim([-1, 1]);
The intended goal is to have a figure with the word "factory" in it. No word appears. Now replace the wor...
Haws asked 18/4, 2018 at 12:13
10
Solved
I'm exporting an image in Matlab using the eps format, but it smooths the image. Matlab does not blur the image using other formats such as png. I would like to know how to export a non-blurry imag...
Krute asked 7/7, 2011 at 16:53
3
What is the quickest way to disable TeX markup from displaying in messages in a waitbar? I was expecting an option like
'Interpreter', 'none', ...
Bloomington asked 3/2, 2012 at 10:11
3
Solved
I have been trying to get semi-transparent circle-shape markers on a log-log scatter plot. MATLAB's own scatter plot function doesn't produce semi-transparent markers (see comments below), so I am ...
Colic asked 7/4, 2016 at 11:10
1
Consider the following MATLAB code:
C = [ 0 0 0 0 0
0 1 2 1 0
0 2 4 2 0
0 1 2 1 0
0 0 0 0 0 ];
pcolor( C );
shading interp;
axis square
Note that C is invariant under 90 degree rotations. Al...
Hyams asked 18/11, 2017 at 15:32
1
Solved
I'm trying to replace the pointer on a chart plot with a full crosshair (that is, a set of 2 perpendicular lines that stretch to the edges of the plot vertically and horizontally and follow the mou...
Grefe asked 15/11, 2017 at 22:4
1
Solved
The documentation for it is scarce (in contourc function):
VN is either a scalar denoting the number of lines to compute or a vector containing the values of the lines. If only one value is want...
Pipit asked 28/9, 2017 at 15:46
1
Solved
I would like to achieve a 3D surface plot. My outputs are as follows.
For a particular value of z, I get y for each value of x (x ranges like 0:0.1:1.4).
Then I vary z and, for the same range of...
Radiate asked 26/10, 2017 at 8:35
2
Solved
I would like to know it there is a way to drag a file from Windows explorer and drop it in my GUI.
The goal should be to get the file path (or folder path) and be able to load it with my own loadi...
Dibucaine asked 31/12, 2014 at 10:54
3
Solved
I cannot figure out how to rotate my xtick labels in a 3d graph. Someone previously suggested:
set(get(gca,'xlabel'), 'Rotation',90)
But when I do this, nothing changes.
The whole code is:
wid...
Parasynapsis asked 30/7, 2014 at 20:46
4
How do you create a color gradient in Matlab such that you plot a 2D line plot of y=y(x), and you color it using another variable that also depends on x such that z=z(x). A scatter or point p...
Jeunesse asked 7/8, 2017 at 21:30
2
Solved
How can I plot a wave (represented by 1 x N matrix) with different colors in matlab. The range for a specific color can be provided manually.
See the diagram below for the expected output.
...
Wimsatt asked 4/8, 2017 at 11:41
2
Solved
I am trying to put a legend in Matlab figures that include a symbol in Latex. When I plot the figure, the legend looks fine. However, when I export the figure as a PDF, the legend gets spaces put i...
Silvie asked 31/7, 2017 at 19:16
4
Solved
Is there a way to remove only the axis lines in the Matlab figure, without affecting ticks and tick labels.
I know that box toggles the upper and right axes lines and ticks and that works perfect...
Whitlow asked 14/9, 2014 at 22:51
1
Given a .fig file of a Matlab boxplot (i.e. underlying data not available), is it possible to change the PlotStyle attribute (from 'traditional' to 'compact')?
Unstop asked 13/6, 2017 at 15:18
1
Solved
I have an image that I want to plot under a graph showing the intensity of an arbitrary row of this image.
Apparently, there is no way I can "automatically" make the two graphs both aligned (they ...
Calle asked 3/5, 2017 at 20:30
© 2022 - 2024 — McMap. All rights reserved.