我正在调查可用于:部署和更新微服务型应用程序的谷歌云工具。到目前为止,我的注意力集中在两个解决方案上:(a) 容器集群;(b) 托管实例组加上自动调节程序。你能不能帮我决定我应该走哪条路。您会在下面找到一些详细信息和要求:
我为解决方案 (a) 和解决方案 (b) 做了一个 MWE。到目前为止,我认为我不会使用 kubernetes 功能。因此我更倾向于解决方案(b)。
你怎么认为 ?
最好的,弗朗索瓦。
google-compute-engine google-cloud-platform kubernetes google-kubernetes-engine
试图将观察结果分别绘制到每次观察的多个尺度,我设法产生以下情节:

但是我想添加一个刻度,在每个刻度中显示y-max值,而不管它与前一刻度之间的差距.下面给出了这种情节的一个例子.当y-max是滴答间隔的倍数时产生.

谢谢,F.
以下是用于生成这些示例的代码.
import numpy as np
import pylab as pl
import matplotlib as plt
import matplotlib.ticker as ticker
import matplotlib.transforms
def add_scales(fig, axes, scales, subplot_reduction_factor=0.1, margin_size=50):
nb_scales = len(scales)
b,l,w,h = zoom_ax.get_position().bounds
_, ymax = axes.get_ylim()
# Saves some space to the right so that we can add our scales
fig.subplots_adjust(right=1-(subplot_reduction_factor)*nb_scales)
for (n, (vmin, vmax, color, label, alignment)) in enumerate(scales):
# Adjust wrt. the orignial figure's scale
nax = fig_zoom.add_axes((b,l,w,(h * alignment) / ymax)) …Run Code Online (Sandbox Code Playgroud)