4
votes
1answer
165 views

pgfplot number format: scientific notation on ticks, without factor 1

I have a pgfplot that is supposed to give me only a colorbar, no other plot. My code was inspired by this question. The logarithmic colorbar code was recycled from this answer and this answer. The ...
6
votes
1answer
361 views

Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath

I'm trying to automatically format numbers in a way that doesn't convert say .8 to 0.8 while at the same time scientific notation is converted to exponent-free notation. siunitx seems to be able to do ...
3
votes
1answer
194 views

fixed leading 0's with pgfmath

I want to calculate a time being printed using pgfmath. I have some code similiar to this: \pgfmathparse{int(mod(\x,60))}\pgfmathresult O'clock but if the result is between 0 and 9 my time being ...
6
votes
3answers
2k views

Print integer without fraction part

In a Tikz Figure, I'm doing some computation and want to print results as label of nodes. The problem is that I only need the integer part of the number to print. I tried with round() function. It ...