Mads Adrian

Results 7 comments of Mads Adrian

For reference: > You want `xtick pos=bottom, ytick pos=left`, or alternatively `tick pos=left` which does the same thing. The length of the ticks is defined by the `tickwidth` parameter. https://tex.stackexchange.com/questions/387611/pgfplots-remove-tickmarks-on-right-and-top-of-plot?rq=1

MWE1: ```python fig = plt.figure() ax1 = plt.subplot(3, 1, 1) plt.plot([0, 1], [0, 1]) plt.title("subplot 1") ax1_dup = ax1.twiny() ax2 = plt.subplot(3, 1, 2) plt.plot([0, 1], [1, 0]) plt.title("subplot 2")...

Adding `ax3.twiny()` in MWE2 does not produce the expected output. The 2nd x-axis of the 3rd mpl subplot is placed at the 2nd pgf subplot. Quite a special case with...

https://github.com/nschloe/tikzplotlib/blob/d7cfc31788a696f1538d4a23f6eccade246f6144/tikzplotlib/_axes.py#L415 is ```python (3, 1, 0, 0) (3, 1, 1, 1) (3, 1, 2, 2) (3, 1, 0, 0) (3, 1, 2, 2) ``` for the case with `twiny` for...

Thanks for the clarifying response. This at least allows a workaround in my code. Although, I don't think you fully understand my inquiry. As stated in the original post, I...

Further does ```python import tensorflow as tf import tensorflow_addons as tfa t, p = [1,1,0,1,1,0], [1,0,1,1,0,1] y_true = tf.constant(t, shape=(6,1)) y_pred = tf.constant(p, shape=(6,1), dtype=tf.float32) m = tfa.metrics.F1Score(num_classes=2, average=None) m.update_state(y_true,...

I think you are right... `tf.metrics` has e.g. `tf.metrics.Accuracy`, `tf.metrics.BinaryAccuracy` and `tf.metrics.CategoricalAccuracy`. I think this pattern should be mirrored for `tfa.metrics.*F1`. As I understand the `tf` docs: - `tf.metrics.Accuracy` returns...