Is it possible to set multiple background color in QChart? - qt6

Win11 + Qt6.4
I want to set corresponding background color within different x-coordinate range in QChart, is it possible?
I didn't find way to specify a certain range for QChart::setPlotAreaBackgroundBrush() in QChart.

Related

Python Bokeh set axis minimum only, without setting the whole range

It's nice that I don't have to specify the axis ranges when I want to do a quick and easy plot, and that Bokeh does it automatically (like every other plotting library), but is there to set an axis minimum only, while letting Bokeh automatically set the maximum? I know I can set the full range by setting Figure.y_range or whatever, but I can't seem to set just the y-minimum, for example.
You can set the start value of the y_range after defining the figure.
p = figure(width=300, height=300)
p.line([1,2,3,4], [1,2,3,4])
p.y_range.start=2
show(pp)
default
y_range.start=2

How to get a color by substracting the other from their combination?

I have a table like this one: https://docs.google.com/spreadsheets/d/1Kn4vfbHwpif7u-6ZTznFpBJFNHhnStETPIQVyQq8xgY/edit#gid=0 with bottom / top color and the Red, Green, Blue (RGB) of the result (where it states 'Preparation' for the bottom color means the canvas so essentially its the RGB of the top color - those rows are the 'single colors').
I am looking for a relation between the double colors and the single colors. E.g. could I somehow subtract one color from their combination and get the other? Either by using the RGB values or using the images in some software?
Note that the type/formula/function/relation that I am looking for will be only for specific single colors and their combinations which I have already measured (do not care if it is valid beyond the dataset that I am working with)

Material Desigl Light (MDL) - Discrete slider, How to use as range slider

I am using https://getmdl.io/components/index.html#sliders-section for developing range slider. But material design providing only one way sliding. I attached one image for my range slider requirement.
Please help me, how I can range sliding option and get selected range min & max value into div?

Retain colour but change transparency in photoshop

How can I retain a specific colour of an object (or layer) but change the transparency?
I have 2 objects which I want to have a specific colour but currently the opacity is 100%. I need to maintain the current colours but with a opacity of 50%.
Obviously if I change the opacity the colours change (dependent on the background). I need to know how to get an original colour at 100% opacity to make my desired colour at 50% opacity.
Okay so couldn't find a specific way to do it with photoshop so I worked out the math based off the RGB values and came up with a formula to do the job.
For each colour channel I used this formula:
Colour value = Desired Colour + (Background Colour - Desired Colour)*(1-1/Desired Opacity)
eg. 30 = 120 + (255-120)*(1-1/0.6)
Obvious only values between 0-255 are applicable and you may need to round values. This also needs to be done 3 times for red, green and blue.

Is there a way to use logic in Excel to change fonts?

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.

Resources