Non-serializable properties are skipped and property values are in Properties defined on any parent classes. Set properties_with_values ( *, include_defaults : bool = True, include_undefined : bool = False ) → Dict ¶ Names of properties that have references Return type Property names classmethod properties_with_refs ( ) → Dict ] ¶Ĭollect the names of all properties on this class that also have To future-proof thisĬurrent usage of this method, wrap the return value in list. ![]() ![]() Mapping property names to property objects. In a future version of Bokeh, this method will return a dictionary Other_attr ( str) – The property on other to link togetherĪttr_selector ( Union ) – The index to link an item in a subscriptable attr Other ( Model) – A Bokeh model to link to self.attr ParametersĪttr ( str) – The name of a Bokeh property on this model To update one Bokeh model property whenever another changes value. This is a convenience method that simplifies adding a CustomJS callback True, if properties are structurally equal, otherwise False js_link ( attr : str, other : Model, other_attr : str, attr_selector : int | str | None = None ) → None ¶ Other ( HasProps) – the other instance to compare to Returns ReturnsĬlean up references to the document and property equals ( other : _props.HasProps ) → bool ¶ This method always traverses the class hierarchy and includes Property_values ( dict) – theme values to use in place of defaults Returns Other instances to save memory (so neither the caller nor the The passed-in dictionary may be kept around as-is and shared with apply_theme ( property_values : Dict ) → None ¶Īpply a set of theme values which will be used rather thanĭefaults, but will not override application-set values. The y-coordinates to locate the image anchors. The x-coordinates to locate the image anchors. That are provided, nor are the tags used directly by Bokeh for any No uniqueness guarantees or other conditions are enforced on any tags ) ¶ TypeĪ ColorMapper to use to map the scalar data from image Run callbacks when the specified event occurs on this ModelĬolor_mapper = LinearColorMapper(id='16136'. Remove any themed values and restore defaults. Query the properties values of HasProps instances with a predicate.Īpply a set of theme values which will be used rather than defaults, but will not override application-set values. Updates the object's properties from a JSON attributes dictionary.įind the PropertyDescriptor for a Bokeh property on a class, given the property name.Ĭollect the names of properties on this class.Ĭollect the names of all properties on this class that also have references.Ĭollect the names of all DataSpec properties on this class.Ĭollect a dict mapping property names to their values. Updates the object's properties from the given keyword arguments. Set a property value on this object from JSON. Intercept attribute setting on HasProps in order to special case a few situations: Returns a JSON string encoding the attributes of this object. Returns a dictionary of the attributes of this object, containing only "JSON types" (string, number, boolean, none, dict, list). Update objects that match a given selector with the specified attribute/value updates. Query this object and all of its references for objects that match the given selector. Returns all Models that this object has references to. Link two Bokeh model properties using JavaScript.Īttach a CustomJS callback to an arbitrary BokehJS model event.Īdd a callback on this object to trigger when attr changes. Generate Python Parameter values suitable for functions that are derived from the glyph.Ĭlean up references to the document and property ![]() The Document this model is attached to (can be None) Indicates whether this model should be synchronized back to a Bokeh server when updated in a web browser. List of events that are subscribed to by Python callbacks.Ī mapping of attribute names to lists of CustomJS callbacks, to be set up on BokehJS side when the document is created. a dict of the form.Īn arbitrary, user-supplied name for this model.Īn optional list of arbitrary, user-supplied values to attach to this model.Ī mapping of event names to lists of CustomJS callbacks. Whether to always round fractional pixel locations in such a way as to make the images bigger.Ī ColorMapper to use to map the scalar data from image into RGBA values for display.Ī Bokeh protocol "structure" of this model, i.e. The height of the plot region that the image will occupy.Īn overall opacity that each image is rendered with (in addition to any alpha values applied explicitly in a color mapper). The widths of the plot regions that the images will occupy. Units to use for the associated property: screen or data The arrays of scalar data for the images to be colormapped.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |