フィルターのクリア

How can i disable/delete the black frame of my rectangle?

2 ビュー (過去 30 日間)
Philipp Mueller
Philipp Mueller 2016 年 9 月 6 日
コメント済み: KSSV 2016 年 9 月 6 日
Dear Community,
If you see my output you will see i have a small black frame around my rectangles. How can i delete this black frame? Thank you ahead.
V = [0,0;1,0;1,1;0,1;5,5;10,5;10,10;5,10;2,2;4,2;4,4;2,4];
F = [1,2,3,4;5,6,7,8;9,10,11,12];%Dieser Vektor sagt mir in welcher Reihenfolge die Punkte
% zu einander verbunden werden müssen. In diesem Fall wird die linke untere
% Ecke mit der rechten unteren Ecke mit der rechten oberen Ecke und linken
% oberen Ecke verbunden.
C = [50;24;99]; %Hier erwarte ich mir die Häufigkeit/Anzahl
patch('Faces',F,'Vertices',V,'FaceVertexCData',C,'FaceColor','flat','SpecularColorReflectance',1) %Befehl fürs "zeichnen"
colormap(parula)%den Colorbar kann man spezifisch einstellen (Farbspektrum), hot, cool, copper, pink, bone siehe help hsv
% bzw. colormapeditor ->
%Direktwahl aller standard-colormaps
%Einfügen/Löschen von Markern
%Verschieben/Farbänderung von Markern
%Live-Vorschau im Figure
%Min/Max-Wahl
%shading interp;
colorbar
%x = 9:0.2:15;
%y = 47:0.2:53;
caxis([0,100]) % setzt die color limits
title('Rainflow Chart');
xlabel('X-Range');
ylabel('Class Width');
legend('Legend is possible');

採用された回答

KSSV
KSSV 2016 年 9 月 6 日
編集済み: KSSV 2016 年 9 月 6 日
You have to make edgecolor to none in the patch command.
patch('Faces',F,'Vertices',V,'FaceVertexCData',C,'FaceColor','flat','SpecularColorReflectance',1) %Befehl fürs "zeichnen"
change the above to
patch('Faces',F,'Vertices',V,'FaceVertexCData',C,'FaceColor','flat','edgecolor','none','SpecularColorReflectance',1) %Befehl fürs "zeichnen"
You can put any color if you want; 'r','k','y' etc...
  2 件のコメント
Philipp Mueller
Philipp Mueller 2016 年 9 月 6 日
@ thx Dr. Siva! Nice regards from Germany
KSSV
KSSV 2016 年 9 月 6 日
You are welcome Philipp....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVideo games についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by