![]() In short, this means: 'e'/'E' scientific format, 'f' fixed format, 'g'/'G' scientific or fixed, whichever is shorter. The first character is identical to the normal format code used by Qt. For reference about that, see the "Argument Formats" section in the detailed description of the QString class.įormatCode is a string of one, two or three characters. by QString::number() and QLocale::toString(). This formatCode is an extended version of the format code used e.g. Sets the number format for the numbers in tick labels. MoveToLayer ( QCPLayer *layer, bool prepend)ĪpplyAntialiasingHint ( QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const SetParentLayerable ( QCPLayerable * parentLayerable) InitializeParentPlot ( QCustomPlot *parentPlot) MouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) ParentPlotInitialized ( QCustomPlot *parentPlot) Protected Functions inherited from QCPLayerable MouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) MouseMoveEvent (QMouseEvent *event, const QPointF &startPos) MousePressEvent (QMouseEvent *event, const QVariant &details) SelectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)ĭeselectEvent (bool *selectionStateChanged) MarginSideToAxisType ( QCP::MarginSide side)ĪpplyDefaultAntialiasingHint ( QCPPainter *painter) const SelectableChanged (const QCPAxis::SelectableParts &parts) SelectionChanged (const QCPAxis::SelectableParts &parts) ScaleTypeChanged ( QCPAxis::ScaleType scaleType) RangeChanged (const QCPRange &newRange, const QCPRange &oldRange) QCPLayerable ( QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable * parentLayerable=nullptr) Public Functions inherited from QCPLayerable Rescale (bool onlyVisiblePlottables=false) SetScaleRatio (const QCPAxis *otherAxis, double ratio=1.0) ScaleRange (double factor, double center) SelectTest (const QPointF &pos, bool onlySelectable, QVariant *details=nullptr) const SetUpperEnding (const QCPLineEnding &ending) SetLowerEnding (const QCPLineEnding &ending) SetSelectedParts (const QCPAxis::SelectableParts &selectedParts) SetSelectableParts (const QCPAxis::SelectableParts &selectableParts) SetSelectedLabelColor (const QColor &color) SetSelectedTickLabelColor (const QColor &color) SetSelectedTickLabelFont (const QFont &font) SetSubTickLength (int inside, int outside=0) SetTickLength (int inside, int outside=0) SetNumberFormat (const QString &formatCode) SetRange (double position, double size, Qt::AlignmentFlag alignment) to the function that plots lines.QCPAxis ( QCPAxisRect *parent, AxisType type) This is a list of additional parameters which are passed to deeper functions, e.g. Note the awkward **kwargs in the documentation. This defines the size of the markers, where the size is interpreted as the area of the marker, not its diameter. The s=housing/100 gives a list of each value of the "population" column divided by 100 to matplotlib's s= parameter. When getting a list of numbers as a color, matplotlib first normalizes the list to values between 0 and 1, and then looks up that value in its colormap. ![]() So, c="median_house_value" gives the values of that column as a list to the c= parameter of matplotlib's scatter. "median_house_value"), pandas interprets this string as a pandas column name, and the values of that column are passed to matplotlib. When a parameter is given as a string (e.g. ![]() ot with kind='scatter' is a pandas function which passes most of its parameters to matplotlib's scatter plot. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |