tags: matlab Development language
xCoordinate shaft scaleset(gca,'xtick',[]);
set(gca,'TickDir','out')
x=100;
y=100;
plot(x, y, '+')
ax = gca; % current axes
ax.YDir = 'reverse';
ax.XAxisLocation = 'top';
ax.Box = 'off';
axis([xmin xmax ymin ymax])
legend('boxoff')
Example:
clear;
close all;
v=[3 3 6 6 5 5 7 7];
z=[0 2 2 10 10 12 12 20];
figure;
plot(v,z)
xlabel('P-VELOCITY KM/SEC');
ylabel('DEPTH IN KM');
ax = gca; % current axes
ax.YDir = 'reverse';
axis([2 9 0 20]);
ax.XTick = 2:1:9;
ax.YTick = 0:10:20
ax.XTickLabel = {'2','','4','','6','','8',''};
ax.XAxisLocation = 'top';
ax.TickDir = 'out';
ax.Box = 'off';
print('./V-Z.eps','-depsc')

imshow(image,'border','tight')
** Note: ** These three lines of code should be placed before plt.show (), and then PLT.IMSHOW ()...
Axis (Axis) Axis axes (Axis) are visible in many charts, such as column charts, line charts, scatter charts, and more. A coordinate axis consists of a set of line segments and text, and the poi...
D3.js coordinate axis drawing method, adding coordinate axis scale and coordinate axis of each scale (V3 version) Axis Axis can be seen in many charts, such as column chart, line chart, scatter...
Learnhttps://matplotlib.org/gallery/index.html Records, descriptions may not be accurate, please refer to the official website for details Matplotlib use summary chart New hidden axis Scale and mark S...
Control the number and direction of the scale in the coordinate axis, the label of the scale, and the label of the scale use the xaxt, yaxt and axis low drawing parameters in plot(). There is no map h...
Occasionally, you need to do passenger flow analysis and draw with the pyplot library. In general, the x-axis scale is displayed as a number by default. E.g: I want the x-axis scale to display the day...
A function of implementing coordinate scale applications in matplotlib is: matplotlib.pyplot.xtickswithmatplotlib.pyplot.yticks 3 parameters in Xticks (): The LOCS parameter is array parameters (array...
The result is as follows Ordinary drawing results are as follows...
Take the x-axis as an example. limits the range of the x-axis: Name the x-axis scale Custom x-axis scale interval If you need to define the names of these scales, you can use xticklabels Name the x-ax...
1. The source code is shown in the figure. 2. The graph generated by the code is as shown in the figure. You can see that the axis scale is actually wrong. 3. As shown in the figure, add the following...