Edit plot of in-built functions

6 次查看(过去 30 天)
SuzieChan
SuzieChan 2020-4-17
Hi,
I am using functions from online addons.
Example:
chiplot(S,DEM,A);
This output produces a graph that I cannot edit.
If I add the function code at the end of the usual formatting code, the output gives two plots, one associated with the function and one associated with the formatting code. The plot formtting code does not assimilate into the chi function code and does not change the chi plot (above).
figure('units','normalized','outerposition',[0 0 1 1]);
font_size =32;
hold on
set(0, 'DefaultAxesFontSize', font_size);
% Set the font size for the figure
set(gcf,'color','w'); % shows you what you are using.
set(gca,'linewidth',3, 'fontname','times') % Set it to times
ZZ = chiplot(S,DEM,A,'mnplot',true,'plot',false)
How can I change the background color or font size on the graph (like I can do with graphs produced by the normal plot function)?
  3 个评论
SuzieChan
SuzieChan 2020-4-17
编辑:SuzieChan 2020-4-17
Yes. DEM is a digital elevation model - a GRIDobj (grid object)
S is a STREAMobj
A is flow accumulation (another grid object).
The output 'ZZ'
ZZ = chiplot(S,DEM,A,'mnplot',true,'plot',false)
generates a struct object with lots of variables inside.
I have tried to isolate the variables which produce the graph, export to Excel and plot manually, but I can't find them in the struct object due to how Matlab computes the function.
All I want to do is edit the plot layout. How can I do it?
Ameer Hamza
Ameer Hamza 2020-4-17
Can you attach a code, which will define the variables S, DEM, and A?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by