目前存在两个问题:
问题1: 由于@Humpelstielzchen,此问题已被解决,这是因为“ noRStudioGD = TRUE”问题。
我看着this post,并尝试了Shane的答案,即:
submitForm = (e) => {
e.preventDefault();
const { user } = this.state;
const { dispatch } = this.props;
if (!( user.password && user.lastName &&user.userName && user.firstName )) {
this.props.dispatch(userActions.register(user));
} else {
this.setState({
error: "Form Incomplete"
})
}
if(isValid) {
this.props.history.push("/login");
}
}
然后我尝试将宽度从5更改为10,以查看是否存在一些不同:
# the plot with width=5
dev.new(width=5, height=4)
plot(1:20)
问题2:
我更改了# the plot with width=10
dev.new(width=10, height=4)
plot(1:20)
(厘米或英寸),但似乎没有变化。更奇怪的是,这两个窗口的宽度是23.2厘米,高度是10.5厘米:这些迷形物的宽度都不是10厘米或10英寸,高度也不是4厘米或4英寸。
units =
答案 0 :(得分:0)
你必须做
...
new_segment.color("red" if len(segments) % 2 else "white")
...
他们显然改变了RStudio中
dev.new(width=10, height=4, noRStudioGD = TRUE, units = "cm")
plot(1:20)
的行为。
说明中也有相关内容:dev.new()