Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Categoricals not showing up in the preview window #14881

Closed
@story645

Description

@story645

As reported by @wuweihust on gitter, string categorical tick labels don't show up in the preview window of an interactive plot:

%matplotlibnotebookimportmatplotlib.pyplotaspltfig,ax=plt.subplots()ax.plot(['hi','bye','why'], [3,1,2])

error

On gitter,@jklymak recommend implementing theformat_data_short method for theStrCategoryFormatter.

The implementation should probably be something like thedefault:

defformat_data(self,value):returnself.__call__(value)defformat_data_short(self,value):returnself.format_data(value)

Which, as an aside, why aren't these called givenStrCategoryFormatter inherits fromFormatter?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp