Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property LoadBalancer::$mWriteIndex is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/LoadBalancer.php on line 83
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 174
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 192
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 185
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 202
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Return type of ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/DatabaseUtility.php on line 163
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContentHandler::$mModelName is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/ContentHandler.php on line 416
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property RequestContext::$recursion is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/context/RequestContext.php on line 332
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property MessageCache::$mMemc is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/cache/MessageCache.php on line 136
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property LoadBalancer::$mWriteIndex is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/db/LoadBalancer.php on line 83
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Parser::$mPreprocessorClass is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/parser/Parser.php on line 255
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/parser/Preprocessor_DOM.php on line 778
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Feed.php on line 234
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php:344) in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/WebResponse.php on line 37 https://rave.gatech.edu/help/index.php?action=history&feed=atom&title=Axes_Tick_Marks_and_LabelsAxes Tick Marks and Labels - Revision history2025-12-14T17:25:55ZRevision history for this page on the wikiMediaWiki 1.25.5 Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property BufferingStatsdDataFactory::$prefix is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/libs/BufferingStatsdDataFactory.php on line 38 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=2341&oldid=prevMatt: /* Tick Mark and Resizing Functions */2012-08-16T17:27:01Z<p><span dir="auto"><span class="autocomment">Tick Mark and Resizing Functions</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 17:27, 16 August 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L21" >Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to create the text objects with the proper strings. This function does NOT handle string wrapping or rotation. This function also does not place the tick marks at their proper locations.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to create the text objects with the proper strings. This function does NOT handle string wrapping or rotation. This function also does not place the tick marks at their proper locations.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''raveresizeaxes''' -  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''raveresizeaxes''' - <ins class="diffchange diffchange-inline">Called in response to a graph changing size, this function resizes handles.allgraphs(ai) to fit inside handles.allblockers(ai) while leaving sufficient room for all axes/tick labels etc.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''ravearrangeobjects''' -  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''ravearrangeobjects''' - <ins class="diffchange diffchange-inline">Called by raveresizeaxes (at the end), this function places all visual elements relative to handles.allgraphs(ai)</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemovecustomticks''' - This function determines if tick labels need to be wrapped or rotated, and puts them at the proper x/y/z locations in axes coordinates.  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemovecustomticks''' - <ins class="diffchange diffchange-inline">Called by ravearrangeobjects (at the end), </ins>This function determines if tick labels need to be wrapped or rotated, and puts them at the proper x/y/z locations in axes coordinates.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen. Called by ravemovecustomticks</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen. Called by ravemovecustomticks</div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=2331&oldid=prevMatt: /* Tick Mark and Resizing Functions */2012-08-16T17:24:30Z<p><span dir="auto"><span class="autocomment">Tick Mark and Resizing Functions</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 17:24, 16 August 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L34" >Line 34:</td>
<td colspan="2" class="diff-lineno">Line 34:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''raveupdateticksKEYWORD''' - This function is called by axeschangelistener whenever the ticks of graph change in response to zooming, changing axis limits, or resizing</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''raveupdateticksKEYWORD''' - This function is called by axeschangelistener whenever the ticks of graph change in response to zooming, changing axis limits, or resizing</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''ravesynchaxes''' - Called by ravearrangeobjects for 3d graphs.</ins></div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=2321&oldid=prevMatt: /* Tick Mark and Resizing Functions */2012-08-16T17:13:26Z<p><span dir="auto"><span class="autocomment">Tick Mark and Resizing Functions</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 17:13, 16 August 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L17" >Line 17:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The following functions are involved in making tick marks and resizing them when a graph is resized:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The following functions are involved in making tick marks and resizing them when a graph is resized:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemaketextticks''' - This function is called by ravecreate<keyword>, usually near the end of the file. Based on the variable displayed on each axis and its datatype, this function decides <del class="diffchange diffchange-inline">whether </del>to use <del class="diffchange diffchange-inline">the </del>default matlab tick mark system or to create text ticks using ravemakecustomticks.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemaketextticks''' - This function is called by ravecreate<keyword>, usually near the end of the file. Based on the variable displayed on each axis and its datatype, this function decides <ins class="diffchange diffchange-inline">what strings </ins>to use <ins class="diffchange diffchange-inline">for tick marks and where to place tick marks </ins>default matlab tick mark system or to create text ticks using ravemakecustomticks.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to <del class="diffchange diffchange-inline">initialize </del>the text objects <del class="diffchange diffchange-inline">and put them in </del>the <del class="diffchange diffchange-inline">right location</del>. This function does NOT handle string wrapping or rotation.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to <ins class="diffchange diffchange-inline">create </ins>the text objects <ins class="diffchange diffchange-inline">with </ins>the <ins class="diffchange diffchange-inline">proper strings</ins>. This function does NOT handle string wrapping or rotation<ins class="diffchange diffchange-inline">. This function also does not place the tick marks at their proper locations</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''raveresizeaxes''' -  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''raveresizeaxes''' -  </div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="L25" >Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''ravearrangeobjects''' -  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''ravearrangeobjects''' -  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemovecustomticks''' -  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemovecustomticks''' - <ins class="diffchange diffchange-inline">This function determines if tick labels need to be wrapped or rotated, and puts them at the proper x/y/z locations in axes coordinates. </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen. <ins class="diffchange diffchange-inline">Called by ravemovecustomticks</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''raveniceticks''' - Calculates tick mark locations for a graph, similar to MATLAB's automatic xtick/ytick/ztick mode.  </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''raveniceticks''' - <ins class="diffchange diffchange-inline">(Currently Unused) </ins>Calculates tick mark locations for a graph, similar to MATLAB's automatic xtick/ytick/ztick mode.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''axeschangelistener''' -  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''axeschangelistener''' -  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''raveupdateticksKEYWORD''' -</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''raveupdateticksKEYWORD''' - <ins class="diffchange diffchange-inline">This function is called by axeschangelistener whenever the ticks of graph change in response to zooming, changing axis limits, or resizing</ins></div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=2311&oldid=prevMatt: /* Tick Mark and Resizing Functions */2012-08-16T16:54:09Z<p><span dir="auto"><span class="autocomment">Tick Mark and Resizing Functions</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 16:54, 16 August 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L28" >Line 28:</td>
<td colspan="2" class="diff-lineno">Line 28:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''raveniceticks''' - Calculates tick mark locations for a graph, similar to MATLAB's automatic xtick/ytick/ztick mode. </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''axeschangelistener''' - </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''raveupdateticksKEYWORD''' -</ins></div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=2271&oldid=prevMatt: /* Tick Mark and Resizing Functions */2012-08-03T20:25:49Z<p><span dir="auto"><span class="autocomment">Tick Mark and Resizing Functions</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 20:25, 3 August 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L21" >Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to initialize the text objects and put them in the right location. This function does NOT handle string wrapping or rotation.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to initialize the text objects and put them in the right location. This function does NOT handle string wrapping or rotation.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*'''</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*'''<ins class="diffchange diffchange-inline">raveresizeaxes''' - </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">*'''ravearrangeobjects''' - </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">*'''ravemovecustomticks''' - </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen.</div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=2261&oldid=prevMatt: /* Tick Mark Locations */2012-08-03T20:25:12Z<p><span dir="auto"><span class="autocomment">Tick Mark Locations</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 20:25, 3 August 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L13" >Line 13:</td>
<td colspan="2" class="diff-lineno">Line 13:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Tick Mark Locations=</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Tick Mark Locations=</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">=Tick Mark and Resizing Functions=</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">The following functions are involved in making tick marks and resizing them when a graph is resized:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''ravemaketextticks''' - This function is called by ravecreate<keyword>, usually near the end of the file. Based on the variable displayed on each axis and its datatype, this function decides whether to use the default matlab tick mark system or to create text ticks using ravemakecustomticks.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''ravemakecustomticks''' - This function makes text object tick labels with the strings sent to it by ravemaketextticks. Its main purpose is to initialize the text objects and put them in the right location. This function does NOT handle string wrapping or rotation.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">*'''betterlinewrap''' - This function attempts to wrap a string by making an educated guess at how many pixels it will render to on screen.</ins></div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=1971&oldid=prevMatt: /* Introduction */2012-04-25T23:31:00Z<p><span dir="auto"><span class="autocomment">Introduction</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 23:31, 25 April 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Introduction=</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Introduction=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Getting tick marks to work correctly in Rave was hard.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Getting tick marks to work correctly in Rave was hard<ins class="diffchange diffchange-inline">. MATLAB offers NO way to get the handles of axes tick labels, so when Rave needs to do something special it has to create tick labels from scratch as text objects</ins>.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Axis tick marks must be set in one of three ways:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Axis tick marks must be set in one of three ways:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="L6" >Line 6:</td>
<td colspan="2" class="diff-lineno">Line 6:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*If the graph can (ever) display text variables such that the tick labels need to be text strings, call the function "ravemaketextticks" near the end of the ravecreateKEYWORD.m file. This function will create text object tick labels that smartly wrap/rotate. Non-text tick labels will use MATLAB's default way of making tick labels.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*If the graph can (ever) display text variables such that the tick labels need to be text strings, call the function "ravemaketextticks" near the end of the ravecreateKEYWORD.m file. This function will create text object tick labels that smartly wrap/rotate. Non-text tick labels will use MATLAB's default way of making tick labels.  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*If the graph needs custom tick labels (i.e. anything not covered by the first two bullets), call the function "ravemakecustomticks". Note that ravemaketextticks is essentially just a wrapper for ravemakecustomticks that automaticates the proper syntax. When you need more flexibility, use ravemakecustomticks.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*If the graph needs custom tick labels (i.e. anything not covered by the first two bullets), call the function "ravemakecustomticks". Note that ravemaketextticks is essentially just a wrapper for ravemakecustomticks that automaticates the proper syntax. When you need more flexibility, use ravemakecustomticks.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Tick Label Sizing/Text Wrapping=</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Tick Label Sizing/Text Wrapping=</div></td></tr>
</table>Matt Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property Revision::$mUnpatrolled is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/Revision.php on line 707
Deprecated: Creation of dynamic property ErrorException::$_mwLogId is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/exception/MWExceptionHandler.php on line 344
Deprecated: Creation of dynamic property WikitextContent::$mText is deprecated in /var/www/vhosts/rave.gatech.edu/httpdocs/help/includes/content/TextContent.php on line 56 https://rave.gatech.edu/help/index.php?title=Axes_Tick_Marks_and_Labels&diff=1961&oldid=prevMatt: Created page with "=Introduction= Getting tick marks to work correctly in Rave was hard. Axis tick marks must be set in one of three ways: *For normal numerical tick mark labels, you can use the n..."2012-04-25T23:30:06Z<p>Created page with "=Introduction= Getting tick marks to work correctly in Rave was hard. Axis tick marks must be set in one of three ways: *For normal numerical tick mark labels, you can use the n..."</p>
<p><b>New page</b></p><div>=Introduction=<br />
Getting tick marks to work correctly in Rave was hard.<br />
<br />
Axis tick marks must be set in one of three ways:<br />
*For normal numerical tick mark labels, you can use the normal MATLAB axes command x/y/ztick x/y/zticklabel properties.<br />
*If the graph can (ever) display text variables such that the tick labels need to be text strings, call the function "ravemaketextticks" near the end of the ravecreateKEYWORD.m file. This function will create text object tick labels that smartly wrap/rotate. Non-text tick labels will use MATLAB's default way of making tick labels. <br />
*If the graph needs custom tick labels (i.e. anything not covered by the first two bullets), call the function "ravemakecustomticks". Note that ravemaketextticks is essentially just a wrapper for ravemakecustomticks that automaticates the proper syntax. When you need more flexibility, use ravemakecustomticks.<br />
<br />
<br />
=Tick Label Sizing/Text Wrapping=<br />
Tick labels are drawn in the font and fontsize in raveprefs.fonts.graphname and raveprefs.fonts.graphsize. When these properties are changed via the setup tab (raveeditthemefontsgui), the function characterwidths is called. This function attempts to determine how many pixels each keyboard character will occupy on screen, and stores this info in raveprefs.fonts.graphwidth. (Non-keyboard ASCII characters are treated as 1 pixel. The characterwidths function could easily be modified to include other ASCII characters if needed.) <br />
<br />
Tick label wrapping is really only an issue for the x-axis, since y-axis text is stacked vertically so the labels never interfere with each other. The function ravemovecustomticks is called by raveresizeaxes to move tick labels as a graph is moved/resized and to wrap text tick labels when necessary/possible. The function betterlinewrap determines if the ticklabel should be wrapped by comparing the available on-screen pixels (i.e. the distance between tick marks) to the estimated width of the ticklabel. If the width>available space, the string will be wrapped after a space or any of the characters +-/*})],_ or before the characters {([. If the string cannot be sufficiently wrapped (for example because it is one long word with no spaces or if even after wrapping it is still too wide) then ALL ticklabels for that axis will be rotated so the text reads vertically. <br />
<br />
=Tick Mark Locations=</div>Matt