[yt-svn] commit/yt: 3 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Jul 11 23:10:18 PDT 2012
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/3eca7fa3b39a/
changeset: 3eca7fa3b39a
branch: yt
user: ngoldbaum
date: 2012-07-12 07:34:34
summary: Merging
affected #: 1 file
diff -r 2df4bc2c8e640b0b31c94a8573e66dd8908af784 -r 3eca7fa3b39a5354f2f4406ef5a5c605bf1aeff1 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -163,8 +163,8 @@
plot.data[self.field_y] - self.bv_y,
int(nx), int(ny),
(x0, x1, y0, y1),).transpose()
- X = na.mgrid[0:plot.image._A.shape[0]-1:ny*1j]# + 0.5*factor
- Y = na.mgrid[0:plot.image._A.shape[1]-1:nx*1j]# + 0.5*factor
+ X,Y = na.meshgrid(na.linspace(xx0,xx1,nx,endpoint=True),
+ na.linspace(yy0,yy1,ny,endpoint=True))
if self.normalize:
nn = na.sqrt(pixX**2 + pixY**2)
pixX /= nn
https://bitbucket.org/yt_analysis/yt/changeset/1cb697c8f39a/
changeset: 1cb697c8f39a
branch: yt
user: ngoldbaum
date: 2012-07-12 07:53:58
summary: Setting factor=16 by default for the quiver callback.
Also fixing up some of the docstrings.
affected #: 2 files
diff -r 3eca7fa3b39a5354f2f4406ef5a5c605bf1aeff1 -r 1cb697c8f39abdcfe38cd35f54ed75293d98fb39 yt/visualization/plot_modifications.py
--- a/yt/visualization/plot_modifications.py
+++ b/yt/visualization/plot_modifications.py
@@ -123,7 +123,7 @@
class QuiverCallback(PlotCallback):
_type_name = "quiver"
- def __init__(self, field_x, field_y, factor, scale=None, scale_units=None, normalize=False):
+ def __init__(self, field_x, field_y, factor=16, scale=None, scale_units=None, normalize=False):
"""
annotate_quiver(field_x, field_y, factor, scale=None, scale_units=None, normalize=False):
diff -r 3eca7fa3b39a5354f2f4406ef5a5c605bf1aeff1 -r 1cb697c8f39abdcfe38cd35f54ed75293d98fb39 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -150,9 +150,9 @@
origin : A string
The location of the origin of the plot coordinate system.
Currently, can be set to three options: 'left-domain', corresponding
- to the bottom-left hand corner of the simulation domain, 'left-window',
- corresponding to the bottom-left hand cordiner of the plot window, or
- 'center-window' for the center of the plot window.
+ to the bottom-left hand corner of the simulation domain, 'center-domain',
+ corresponding the center of the simulation domain, or 'center-window' for
+ the center of the plot window.
Examples
--------
@@ -199,19 +199,13 @@
origin : A string
The location of the origin of the plot coordinate system.
Currently, can be set to three options: 'left-domain', corresponding
- to the bottom-left hand corner of the simulation domain, 'left-window',
- corresponding to the bottom-left hand cordiner of the plot window, or
- 'center-window' for the center of the plot window.
+ to the bottom-left hand corner of the simulation domain, 'center-domain',
+ corresponding the center of the simulation domain, or 'center-window' for
+ the center of the plot window.
weight_field : string
The name of the weighting field. Set to None for no weight.
max_level: int
The maximum level to project to.
- origin : A string
- The location of the origin of the plot coordinate system.
- Currently, can be set to three options: 'left-domain', corresponding
- to the bottom-left hand corner of the simulation domain, 'left-window',
- corresponding to the bottom-left hand cordiner of the plot window, or
- 'center-window' for the center of the plot window.
Examples
--------
https://bitbucket.org/yt_analysis/yt/changeset/24e51f7495c0/
changeset: 24e51f7495c0
branch: yt
user: ngoldbaum
date: 2012-07-12 07:55:36
summary: Merging
affected #: 0 files
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list