3D图形显示错误的轴标签(X轴具有Y轴名称,Y轴具有X轴名称)

时间:2019-03-16 22:03:58

标签: python matplotlib plot

我想创建3D直方图,但我不知道为什么X轴带有Y标签,而Y轴带有X轴。怎么了?

export default class Signup extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      email: ''
    };

    this.handleSubmit = this.handleSubmit.bind(this);
  }

  handleSubmit(e) {
    e.preventDefault();

    const formErrors = formValidationTest('test');
  }

  render() {
    const { email } = this.props;

    return (
      <div>
        <form className="needs-validation" noValidate>
          <label htmlFor="email">Email</label>
          <input
            type="email"
            id="email"
            aria-describedby="emailHelp"
            placeholder="Email"
            name="email"
            value={email}
            onChange={this.handleInputChange}
          />
          <div className="invalid-feedback">{emailValidationMessage}</div>
          <button type="submit" className="btn btn-primary btn-block" onClick={this.handleSubmit}>
            Sign up
          </button>
        </form>
      </div>
    );
  }
}

plot

1 个答案:

答案 0 :(得分:2)

请注意numpy.histogram2d文档中有关输出数组的内容:

  

“样本x和y的二维直方图。x的值沿第一维直方图,y的值沿第二维直方图。”

这意味着您可能想转置结果数组,可能像

SELECT SUM(`CV`) from PCLS WHERE `A1`=PCNT.`A`
SELECT COUNT(`CV`) from PCLS WHERE `A1`=PCNT.`A`