Skip to content

Conversation

dougnd
Copy link
Contributor

@dougnd dougnd commented Feb 9, 2017

Change to respect the z-orders of objects. The basic idea was instead of just storing the content to be written out to file in an array, maintain it in a dictionary that maps z-order to an array of content for that z-order. Then flatten it into a single content array using the z-order. This flattening does occur a couple times (for example all axes objects must be flattened so they can be book ended by \begin{axis} and \end{axis} correctly.

Before, bar charts with error bars were plotted as:
barchart_errorbarsevx8q1-1_t1

Now:
barchart_errorbarsidfigi-1

(The ugliness of these plots are to make sure there is a difference in the hashes, thin error bars weren't working)

@dougnd
Copy link
Contributor Author

dougnd commented Feb 9, 2017

Note: fancybox phash needed to be changed because it was affected by the z-order.

Before it was rendering like:
fancyboxgjfobl-1_t1

Against a reference of:
ref

Now it renders like:
fancyboxhclkou-1

@nschloe nschloe merged commit 6d51d04 into nschloe:master Feb 9, 2017
@nschloe
Copy link
Owner

nschloe commented Feb 9, 2017

Great contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants