Python yasis unit are automatically assigned
Python > Figure Reference > layout.yaxis
Python Figure Reference: layout.yaxis
- yaxis
Code: fig.update_yaxes(. )
Type: dict containing one or more of the keys listed below.
- anchor
Code: fig.update_yaxes(anchor=)
Type: enumerated , one of ( "free" | "/^x([2-9]|[1-9][0-9]+)?( domain)?$/" | "/^y([2-9]|[1-9][0-9]+)?( domain)?$/" ) If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`.
- automargin
Code: fig.update_yaxes(automargin=)
Type: flaglist string. Any combination of "height" , "width" , "left" , "right" , "top" , "bottom" joined with a "+" OR True or False .
Examples: "height" , "width" , "height+width" , "height+width+left" , "True" Determines whether long tick labels automatically grow the figure margins.
- autorange
Code: fig.update_yaxes(autorange=)
Type: enumerated , one of ( True | False | "reversed" | "min reversed" | "max reversed" | "min" | "max" )
Default: True Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to "False". Using "min" applies autorange only to set the minimum. Using "max" applies autorange only to set the maximum. Using "min reversed" applies autorange only to set the minimum on a reversed axis. Using "max reversed" applies autorange only to set the maximum on a reversed axis. Using "reversed" applies autorange on both ends and reverses the axis direction.
- autorangeoptions
Code: fig.update_yaxes(autorangeoptions=dict(. ))
Type: dict containing one or more of the keys listed below.
- clipmax
Code: fig.update_yaxes(autorangeoptions_clipmax=)
Type: number or categorical coordinate string Clip autorange maximum if it goes beyond this value. Has no effect when `autorangeoptions.maxallowed` is provided.
- clipmin
Code: fig.update_yaxes(autorangeoptions_clipmin=)
Type: number or categorical coordinate string Clip autorange minimum if it goes beyond this value. Has no effect when `autorangeoptions.minallowed` is provided.
- include
Code: fig.update_yaxes(autorangeoptions_include=)
Type: number or categorical coordinate string Ensure this value is included in autorange.
- maxallowed
Code: fig.update_yaxes(autorangeoptions_maxallowed=)
Type: number or categorical coordinate string Use this value exactly as autorange maximum.
- minallowed
Code: fig.update_yaxes(autorangeoptions_minallowed=)
Type: number or categorical coordinate string Use this value exactly as autorange minimum.
- dtick
Code: fig.update_yaxes(minor_dtick=)
Type: number or categorical coordinate string Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n"dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, . set dtick to 1. To set tick marks at 1, 100, 10000, . set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, . set dtick to log_10(5), or 0.69897000433. "log" has several special values; "L", where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = "L0.5" will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use "D1" (all digits) or "D2" (only 2 and 5). `tick0` is ignored for "D1" and "D2". If the axis `type` is "date", then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. "date" also has special values "M" gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to "2000-01-15" and `dtick` to "M3". To set ticks every 4 years, set `dtick` to "M48"
- gridcolor
Code: fig.update_yaxes(minor_gridcolor=)
Type: color
Default: "#eee" Sets the color of the grid lines.
- griddash
Code: fig.update_yaxes(minor_griddash=)
Type: string
Default: "solid" Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").
- gridwidth
Code: fig.update_yaxes(minor_gridwidth=)
Type: number greater than or equal to 0 Sets the width (in px) of the grid lines.
- nticks
Code: fig.update_yaxes(minor_nticks=)
Type: integer greater than or equal to 0
Default: 5 Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto".
- showgrid
Code: fig.update_yaxes(minor_showgrid=)
Type: boolean Determines whether or not grid lines are drawn. If "True", the grid lines are drawn at every tick mark.
- tick0
Code: fig.update_yaxes(minor_tick0=)
Type: number or categorical coordinate string Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`="L" (see `dtick` for more info). If the axis `type` is "date", it should be a date string, like date data. If the axis `type` is "category", it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.
- tickcolor
Code: fig.update_yaxes(minor_tickcolor=)
Type: color
Default: "#444" Sets the tick color.
- ticklen
Code: fig.update_yaxes(minor_ticklen=)
Type: number greater than or equal to 0 Sets the tick length (in px).
- tickmode
Code: fig.update_yaxes(minor_tickmode=)
Type: enumerated , one of ( "auto" | "linear" | "array" ) Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. ("array" is the default value if `tickvals` is provided).
- ticks
Code: fig.update_yaxes(minor_ticks=)
Type: enumerated , one of ( "outside" | "inside" | "" ) Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines.
- tickvals
Code: fig.update_yaxes(minor_tickvals=)
Type: list, numpy array, or Pandas series of numbers, strings, or datetimes. Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`.
- tickwidth
Code: fig.update_yaxes(minor_tickwidth=)
Type: number greater than or equal to 0 Sets the tick width (in px).
- bounds
Parent: layout.yaxis.rangebreaks[]
Type: list Sets the lower and upper bounds of this axis rangebreak. Can be used with `pattern`.
- dvalue
Parent: layout.yaxis.rangebreaks[]
Type: number greater than or equal to 0
Default: 86400000 Sets the size of each `values` item. The default is one day in milliseconds.
- enabled
Parent: layout.yaxis.rangebreaks[]
Type: boolean
Default: True Determines whether this axis rangebreak is enabled or disabled. Please note that `rangebreaks` only work for "date" axis type.
- name
Parent: layout.yaxis.rangebreaks[]
Type: string When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: False` or `enabled: False` to hide it). Has no effect outside of a template.
- pattern
Parent: layout.yaxis.rangebreaks[]
Type: enumerated , one of ( "day of week" | "hour" | "" ) Determines a pattern on the time line that generates breaks. If "day of week" - days of the week in English e.g. 'Sunday' or `sun` (matching is case-insensitive and considers only the first three characters), as well as Sunday-based integers between 0 and 6. If "hour" - hour (24-hour clock) as decimal numbers between 0 and 24. for more info. Examples: - < pattern: 'day of week', bounds: [6, 1] >or simply < bounds: ['sat', 'mon'] >breaks from Saturday to Monday (i.e. skips the weekends). - < pattern: 'hour', bounds: [17, 8] >breaks from 5pm to 8am (i.e. skips non-work hours).
- templateitemname
Parent: layout.yaxis.rangebreaks[]
Type: string Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: False` or `enabled: False` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: True`.
- values
Parent: layout.yaxis.rangebreaks[]
Type: list Sets the coordinate values corresponding to the rangebreaks. An alternative to `bounds`. Use `dvalue` to set the size of the values along the axis.
- color
Code: fig.update_yaxes(tickfont_color=)
Type: color
- family
Code: fig.update_yaxes(tickfont_family=)
Type: string HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman".
- lineposition
Code: fig.update_yaxes(tickfont_lineposition=)
Type: flaglist string. Any combination of "under" , "over" , "through" joined with a "+" OR "none" .
Examples: "under" , "over" , "under+over" , "under+over+through" , "none"
Default: "none" Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations e.g. "under+over", etc.
- shadow
Code: fig.update_yaxes(tickfont_shadow=)
Type: string
Default: "none" Sets the shape and color of the shadow behind text. "auto" places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- size
Code: fig.update_yaxes(tickfont_size=)
Type: number greater than or equal to 1
- style
Code: fig.update_yaxes(tickfont_style=)
Type: enumerated , one of ( "normal" | "italic" )
Default: "normal" Sets whether a font should be styled with a normal or italic face from its family.
- textcase
Code: fig.update_yaxes(tickfont_textcase=)
Type: enumerated , one of ( "normal" | "word caps" | "upper" | "lower" )
Default: "normal" Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- variant
Code: fig.update_yaxes(tickfont_variant=)
Type: enumerated , one of ( "normal" | "small-caps" | "all-small-caps" | "all-petite-caps" | "petite-caps" | "unicase" )
Default: "normal" Sets the variant of the font.
- weight
Code: fig.update_yaxes(tickfont_weight=)
Type: integer between or equal to 1 and 1000
Default: normal Sets the weight (or boldness) of the font.
- dtickrange
Parent: layout.yaxis.tickformatstops[]
Type: list range ["min", "max"], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null"
- enabled
Parent: layout.yaxis.tickformatstops[]
Type: boolean
Default: True Determines whether or not this stop is used. If `False`, this stop is ignored even within its `dtickrange`.
- name
Parent: layout.yaxis.tickformatstops[]
Type: string When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: False` or `enabled: False` to hide it). Has no effect outside of a template.
- templateitemname
Parent: layout.yaxis.tickformatstops[]
Type: string Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: False` or `enabled: False` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: True`.
- value
Parent: layout.yaxis.tickformatstops[]
Type: string
Default: "" string - dtickformat for described zoom level, the same as "tickformat"
- font
Code: fig.update_yaxes(title_font=dict(. ))
Type: dict containing one or more of the keys listed below. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute.
- color
Code: fig.update_yaxes(title_font_color=)
Type: color
- family
Code: fig.update_yaxes(title_font_family=)
Type: string HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman".
- lineposition
Code: fig.update_yaxes(title_font_lineposition=)
Type: flaglist string. Any combination of "under" , "over" , "through" joined with a "+" OR "none" .
Examples: "under" , "over" , "under+over" , "under+over+through" , "none"
Default: "none" Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations e.g. "under+over", etc.
- shadow
Code: fig.update_yaxes(title_font_shadow=)
Type: string
Default: "none" Sets the shape and color of the shadow behind text. "auto" places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- size
Code: fig.update_yaxes(title_font_size=)
Type: number greater than or equal to 1
- style
Code: fig.update_yaxes(title_font_style=)
Type: enumerated , one of ( "normal" | "italic" )
Default: "normal" Sets whether a font should be styled with a normal or italic face from its family.
- textcase
Code: fig.update_yaxes(title_font_textcase=)
Type: enumerated , one of ( "normal" | "word caps" | "upper" | "lower" )
Default: "normal" Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- variant
Code: fig.update_yaxes(title_font_variant=)
Type: enumerated , one of ( "normal" | "small-caps" | "all-small-caps" | "all-petite-caps" | "petite-caps" | "unicase" )
Default: "normal" Sets the variant of the font.
- weight
Code: fig.update_yaxes(title_font_weight=)
Type: integer between or equal to 1 and 1000
Default: normal Sets the weight (or boldness) of the font.
JOIN OUR MAILING LIST
- Sign up to stay in the loop with all things Plotly — from Dash Club to product updates, webinars, and more! Subscribe