English 中文(简体)
Save a toperget inmatplotlib figures
原标题:Save a corner plot in matplotlib figure

我有一个简单的玉米地带。 只想一想一下其网页上的例子(从rel=“nofollow noreferer”>here):

import corner
import numpy as np

ndim, nsamples = 2, 10000
np.random.seed(42)
samples = np.random.randn(ndim * nsamples).reshape([nsamples, ndim])
figure = corner.corner(samples)

现在,我要问,我能否在单一试算法数字中拯救这一完整的3块土地,以便我能够把这一块土地推到另一个较大的试算地。

此外,我还有一个问题,是,在玉米地上,是否有办法将习俗合法化/所有权?

最佳回答

this is my first post on Stack Overflow, with less than 50 reputation I cannot post this as a comment, hope it is helpful to some extent.

利用这条线拯救玉米块面积:

corner.corner.savefig( cornerplot... )

也许可以调整,并可再载作为试爆子。 虽然理解源代码肯定是最好的

问题回答

如你所贴出的链接被打破,但你可以做以下工作:

<>斯特隆>Before “figure=......”:

fig, axs = plt.subplots(1,1)

<>After>:

plt.suptitle( CORNER PLOT )
plt.savefig( ./figure_awesome.pdf )
plt.show()
plt.close()

And Voilà





相关问题
Interactive mode in matplotlib

I want to dynamically update the scatter plot based on the y-axis data received from a socket connection. I used python matplot lib in interactive mode to do this, but during dynamic updation if i ...

Couple of matplotlib newbie doubts

I am just starting to use matplotlib and I have hit upon 2 major roadblocks, which I can t seem to work around from the docs/examples,etc: Here is Python source: #!/usr/bin/python import matplotlib ...

How to disable screen update in matplotlib

I have a loop that is adding a line to a plot on each iteration. Right now this is horribly slow as it seems to redraw the the whole graph each time. Is it possible to disable screen updates for a ...

How to use Matplotlib in Django?

From some examples from the Internet I made the test code below. It works! ... BUT if I reload the page, the pie will draw itself with the same image. Some parts get darker every time I reload the ...

Plotting vector fields in python (matplotlib)

I found this code on http://matplotlib.sourceforge.net/examples/pylab_examples/quiver_demo.html from pylab import * from numpy import ma X,Y = meshgrid( arange(0,2*pi,.2),arange(0,2*pi,.2) ) U = cos(...

Multiple grids on matplotlib

I m making plots in Python and matplotlib, which I found huge and flexible, till now. The only thing I couldn t find how to do, is to make my plot have multiple grids. I ve looked into the ...

热门标签