@@ -229,7 +229,7 @@ <h1>2. Text Visualizations<a class="headerlink" href="#text-visualizations" titl
229229
230230< dl class ="method ">
231231< dt id ="text.annotation.Annotation.draw ">
232- < code class ="sig-name descname "> draw</ code > < span class ="sig-paren "> (</ span > < em class ="sig-param "> annotation</ em > , < em class ="sig-param "> x</ em > , < em class ="sig-param "> y</ em > , < em class ="sig-param "> wordspacing=0.005 </ em > , < em class ="sig-param "> lineheight=1.25</ em > , < em class ="sig-param "> align='left'</ em > , < em class ="sig-param "> va='top'</ em > , < em class ="sig-param "> pad=0</ em > , < em class ="sig-param "> *args</ em > , < em class ="sig-param "> **kwargs</ em > < span class ="sig-paren "> )</ span > < a class ="headerlink " href ="#text.annotation.Annotation.draw " title ="Permalink to this definition "> ¶</ a > </ dt >
232+ < code class ="sig-name descname "> draw</ code > < span class ="sig-paren "> (</ span > < em class ="sig-param "> annotation</ em > , < em class ="sig-param "> x</ em > , < em class ="sig-param "> y</ em > , < em class ="sig-param "> wordspacing=None </ em > , < em class ="sig-param "> lineheight=1.25</ em > , < em class ="sig-param "> align='left'</ em > , < em class ="sig-param "> va='top'</ em > , < em class ="sig-param "> pad=0</ em > , < em class ="sig-param "> *args</ em > , < em class ="sig-param "> **kwargs</ em > < span class ="sig-paren "> )</ span > < a class ="headerlink " href ="#text.annotation.Annotation.draw " title ="Permalink to this definition "> ¶</ a > </ dt >
233233< dd > < p > Draw the text annotation visualization.
234234The method receives text as a list of tokens and draws them as text.</ p >
235235< p > The text can be provided either as strings or as dictionaries.
@@ -256,7 +256,8 @@ <h1>2. Text Visualizations<a class="headerlink" href="#text-visualizations" titl
256256The end x-position is taken from the axis limit.
257257If a tuple is given, the first two values are the start and end x-position of the annotation.</ p > </ li >
258258< li > < p > < strong > y</ strong > (< em > float</ em > ) – The starting y-position of the annotation.</ p > </ li >
259- < li > < p > < strong > wordspacing</ strong > (< em > float</ em > ) – The space between words.</ p > </ li >
259+ < li > < p > < strong > wordspacing</ strong > (< em > float</ em > < em > or </ em > < em > None</ em > ) – The space between words.
260+ If < cite > None</ cite > is given, the space is calculated based on the height of the line.</ p > </ li >
260261< li > < p > < strong > lineheight</ strong > (< em > float</ em > ) – The space between lines.</ p > </ li >
261262< li > < p > < strong > align</ strong > (< em > str</ em > ) – < p > The text’s alignment.
262263Possible values:</ p >
@@ -356,7 +357,8 @@ <h1>2. Text Visualizations<a class="headerlink" href="#text-visualizations" titl
356357The method expects a < cite > list</ cite > of tokens, each one a < cite > dict</ cite > .</ p > </ li >
357358< li > < p > < strong > x</ strong > (< em > tuple</ em > ) – The start and end x-position of the annotation.</ p > </ li >
358359< li > < p > < strong > y</ strong > (< em > float</ em > ) – The starting y-position of the annotation.</ p > </ li >
359- < li > < p > < strong > wordspacing</ strong > (< em > float</ em > ) – The space between words.</ p > </ li >
360+ < li > < p > < strong > wordspacing</ strong > (< em > float</ em > < em > or </ em > < em > None</ em > ) – The space between words.
361+ If < cite > None</ cite > is given, the space is calculated based on the height of the line.</ p > </ li >
360362< li > < p > < strong > lineheight</ strong > (< em > float</ em > ) – The space between lines.</ p > </ li >
361363< li > < p > < strong > align</ strong > (< em > str</ em > ) – < p > The text’s alignment.
362364Possible values:</ p >
0 commit comments