我一直在寻找一种方法来更改使用动画中注释的arrowprops参数创建的箭头的属性(matplotlib)。
箭头是这样创建的:
axes.annotate('', xy=(-1, -1), xytext=(-1, -1), xycoords='data', textcoords='data',
arrowprops=dict(arrowstyle='<-', color='blue', linewidth=2))
我希望能够在动画期间更改箭头的颜色。
答案 0 :(得分:1)
注释的箭头存储在# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name localhost;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
try_files $uri $uri/ /index.php;
root /var/www/html;
index index.html index.htm index.php;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/app.snuba.com/public_html$fastcgi_script_name;
error_page 405 = $uri;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
属性中。您可以通过arrow_patch
设置颜色。
set_color