I am trying to use formula units (for example Pa,°C) for the label of my x and y axis, but it messes up the labels completely adding not wanted symbol (for example ...A°), I also try to use Greek letters. but they don't compile.
I set the encoding utf8, and searched the encryption online, but they don't match. I also tried with {/Symbol} but it still doesn't work.
Related
I have three columns with RGB colors. In another set of columns, I need to convert them to X,Y coordinates per the following examples:
How?
The math is eluding me, mostly because it has to wrap back around to red.
Of note: no VB please, and I'd prefer the map jump from the second red directly to pure grayscale (i.e. no bleeding).
UPDATE: I came up with the following:
X —
=IF(AND(MAX([#R]:[#B])=[#R],MAX([#R]:[#B])<>[#B]),[#R]+[#G]-[#B],
IF(MAX([#R]:[#B])=[#G],512+[#G]+[#B]-[#R],
IF(MAX([#R]:[#B])=[#B],1024+[#B]+[#R]-[#G])))
-(256*(MAX([#R]:[#B])/256))
Y —
=ROUNDUP(MAX(Table1[#[R]:[B]])/2*IF(MIN(Table1[#[R]:[B]])=0,1,1+MIN(Table1[#[R]:[B]])/256),0)
Plus a separate quick calculation to wrap around negative X values. I'll also write a quick check for grayscale exceptions after I resolve colors.
But first, tell me why the above is wrong.
The following figure is produced by python-matplotlib, I want to realize to two things:
1.Replace the original value of y axis by a new equivalent number, for example, -21e-5 replaced by -201e-6;
2.Change the font, font size and font style of the exponent.
P.s. The curve consists of many data points stored in a txt file(using ‘with open()’ syntax to get these data).
I'm having some issues using custom number format in Excel. I want the numbers on the y-axis of a scatter graph to be number formatted, so 16 on the y axis is labelled as a grade G, 22 as a grade F, 28 as a grade E, and so on. The following code works and formats my G and F correctly.
.Axes(xlValue).TickLabels.NumberFormat = "[=16]""G"";[=22]""F"";"
When I try to add any more formats in, say;
.Axes(xlValue).TickLabels.NumberFormat = "[=16]""G"";[=22]""F"";[=28]""E"";"
It no longer works. Is there a way around this problem?
NB: My y axis major unit is set to 6 and the axis minimum is set to 16, so all the grades I want lie on the tick markers.
This is a limitation of Excel, unfortunately: a number format can contain up to 2 conditions.
This is confirmed here. I've looked around for the original Microsoft documentation for this but I can't find it. What I can say, however, is that all of the example format codes I've seen on Microsoft pages have up to two conditions, never more than two. I guess they were not expecting users to need more than two conditions.
One workaround: See Jon Peltier's article on how to make arbitrary axes scales. His example:
I'm using Expression Blend 3 and am writing some of the XAML by hand, specifically the color values of controls.
I have a list of RGB colors already converted to hexadecimal. I just need to insert the hex value into my XAML.
Initially, I pasted the hex value from an email into the appropriate properties. Before I could finish, Blend started having a fit, underlining the color property with a squiggle and a tooltip telling me "Token is not valid." After some research, I found placing a pound sign ("#") in front of the hex value resolved this issue.
In the process of researching this problem, I started changing colors via the color picker in Blend. I quickly found the values Blend was inserting not only started with the pound sign, but also "FF". The values I was pasting were valid colors in a valid hex format. But when entering the RGB values into Blend and letting Blend insert the hex value, I noticed all my colors were prefixed with "#FF". Removing the #, as I already pointed out, generated errors, but removing the "FF" seemed to have no effect at all.
In the world of hexadecimal colors, is the color #5A7F39 really the same as #FF5A7F39? Why the FF? They are two different hex values, right? But they appear identical onscreen. Why the difference?
That may be the alpha component of the color, which represents the opacity (00 -> transparent, FF -> opaque).
MSDN seems to agree with this: Color
16-bit hexadecimal, alpha -- #AARRGGBB
I believe the leading FF is the alpha. 255 (or FF) being 100% opaque, and 00 would be transparent.
The 'extra' FF is an alpha value (degree of transparency). If you only have three hexadecimal pairs, the alpha value is assumed to be ff (no transparency). However, if you compare #335A7F39 and #FF5A7F39, you should see a difference.
So I've been working with excel to change characters and colors within cells based on where numbers fall. For example when looking at values less than 10 a symbol will appear as red down arrows and values higher than 30 will be create a green up arrow. This is all well and good and I'm using the Wingdings 3 font on the cells along with various rules to change color. The problem is the middle range. I am attempting to have a circle of varying color appear when the cells being looked at contain values greater than 9 and less than 30 (currently it displays as a horizontal double headed arrow). The problem is the Wingdings 3 font does not include any circle symbols and I can't figure out how to use the Conditional Formatting to change the font based on numerical value.
Hopefully there is a fix to this so that I can continue working on this project.
Below is what my spread sheet currently produces:
Just kidding about the image I don't have enough reputation to do that yet.
Alright so the best way to do this (for my problem) was to go into the Conditional Formatting section of Excel and instead of using the IF function by cell just use the icon sets and manage the rules associated with them. I only needed a red and green arrows and circles and with some toying around with the settings a 4 symbol icon set with my chosen shapes did the trick. It ended up being simpler than the IF logic along with rule application I was attempting at the beginning. Just know that there are few symbol choices and no way to add more in the current version of Excel.