plotting – How to change color of the points and remove the joined line in the given code?

Like this?

{data1, data2} = Transpose[Table[{2 n, 3 n + 100}, {n, 20}]];
a = ListPlot[data1, Joined -> True, 
   PlotStyle -> {Directive[Red, Thickness[Scaled[10^-2]]], 
     Directive[Blue, Thickness[Scaled[10^-2]]]}, Mesh -> All, 
   MeshStyle -> Directive[PointSize[Large], Red], 
   ClippingStyle -> False];
b = ListPlot[data2, Mesh -> 20, PlotStyle -> All, 
   ColorFunction -> Function[{x, y}, Blend[{Red, Blue}, x]]];
Show[a, b, PlotRange -> All]

enter image description here

How to add background color for header wrapper in custom theme inherit from blank theme

I have created a custom theme which is inherited from the blank theme, how to add background color for the header wrapper?

graphics – How to draw borders around tiles of the same color?

I’m having difficulties with a project to show random tiles with a few random colors. Here’s the code that I need to modify:

Ndomain = 500; (* Number of tiles *)
RandomTiles = 
 Table({RandomReal(), RandomReal(), RandomInteger({1, 5})}, {n, 1, 

 Mesh -> None,
 MeshStyle -> Thick,
 ColorFunction -> "CandyColors",
 InterpolationOrder -> 0,
 Frame -> False,
 ImageSize -> {500, 500}

 Mesh -> All,
 MeshStyle -> Thick,
 ColorFunction -> "CandyColors",
 InterpolationOrder -> 0,
 ImageSize -> {500, 500}

Preview of what this code is doing:

enter image description here

Now the problem: In the 2D view, I need to draw a thick black line around all adjacent tiles that have the same color, something like this (it’s similar to the question Draw border around constant regions of image, but this is about another problem):

enter image description here

How could I do that? Take note that I’m using Mathematica 7.0, so I need minimalistic modifications to the code above (unless it’s actually impossible to do and need to rebuilt completely the code).

Reduced color gamut on outdoor video with Canon EOS RP

I am trying a new DSLR camera for shooting video. I set white balance to automatic and the result seems to have a poor color gamut compared to either a Nikon DSLR shot outside or to the Canon shot inside. Here is the result of the Canon after transferring to my computer:

Result of Canon outdoor video

and the Canon with the same puppet indoors:

Result of Canon indoor photo or video

And a Nikon D5200 with the same setting and puppet:

Result of Nikon outdoor video

How can I fix the color gamut of the Canon EOS RP for outdoor video?

Color on Shortcode insert that creates a button

I am trying to insert a button with shortcode into my Elementor editing tool.
Creating the button works, but it seems to take the color from the theme, which I can’t seem to change.
So I was trying to edit the shortcode to force the color..

Original without color:
Live Chat
Added color.
Live Chat
But it doesn’t change anything.

Is there anything else I need to update or is the coding incorrect?


filters – What distinguishes natural photos from filtered ones (color theory)?

I have implemented a filtered which makes use of RGB color space plus some transformation functions. This filter can be seen here in action. The natural image is obvious to me.

// Natural Image

enter image description here

// Filtered Image

enter image description here

But the reason it seems obvious to me doesn’t have to do with my knowledge that a dog cannot be yellow or purple. It’s the perception of certain colors that exist in the original image and do not exist in the filtered one.

So my question is what kind of colors do natural images contain ? Are there some certain rules ? Is there a color space (not RGB) that has to do with human perception and not computer (adding and substracting numbers like rgb). Also, are there any filters that change the image but keep the natural feeling (like changing the hue but maybe something more advanced ?

linux – Dynamically changing cursor color rxvt/urxvt based on vim syntax

I try to switch my terminal emulator from terminator to urxvt. However, I cannot change the cursor background color dynamically depending on the underlying color of the syntax in vim in urxvt, which however works in terminator. This question is not about changing the cursor color depending on insert/normal mode, but changing the cursor color depending on the color of the syntax that the cursor is on. I use Arch Linux, i3wm, and the current rxvt-unicode package 9.22-10 and vim 8.2.1989.

terminator (green cursor background)

urxvt (white cursor background, want green)


!!! Config for urxvt terminal 
!INFO Own stuff
!URxvt.underlineURLs: true
URxvt*letterSpace: -2
!Using Xft.antialias changes the antialias option of !every! graphical program (firefox, ...)
URxvt.antialias:              true
URxvt.allow_bold:           true
!INFO It looks weird inside vim if I use pixelsize 23 or 25
URxvt*font:xft:Meslo LG S DZ for Powerline:pixelsize=24
URxvt*boldFont:xft:Meslo LG S DZ for Powerline:pixelsize=24:style=bold
! Fix bold colors
URxvt.intensityStyles: false 
!Use foreground color (text color) from terminator
*foreground: #839496

xterm*dynamicColors: true
urxvt*dynamicColors: on
!URxvt*cursorColor:  #D6C0FB
!URxvt*cursorBlink:  on

!Rest from

! Xft settings

Xft.dpi:                    96
!Xft.antialias:              false INFO Set this to true above, but only for URxvt 
Xft.rgba:                   rgb
Xft.hinting:                true
Xft.hintstyle:              hintslight

! URxvt settings
! Colours lifted from Solarized (
! More info at:

URxvt.depth:                32
URxvt.geometry:             90x30
URxvt.transparent:          false
URxvt.fading:               0
! URxvt.urgentOnBell:         true
! URxvt.visualBell:           true
URxvt.loginShell:           true
URxvt.saveLines:            50
URxvt.internalBorder:       3
URxvt.lineSpace:            0

! Fonts
!URxvt.allow_bold:           false INFO Set to true above
/* URxvt.font:                 -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1 */
!URxvt*font: xft:Monospace:pixelsize=14 INFO Other font above
!URxvt*boldFont: xft:Monospace:pixelsize=14 INFO Other font above

! Fix font space 
!URxvt*letterSpace: -1 INFO I set it to -2 above

! Scrollbar
URxvt.scrollStyle:          rxvt
URxvt.scrollBar:            false

! Perl extensions
URxvt.perl-ext-common:      default,matcher
URxvt.matcher.button:       1
URxvt.urlLauncher:          firefox
URxvt.matcher.pattern.1: \bwww\.(\w-)\.(\w./?&@#-)*(\w/-)!Disabeling 
!INFO Mine URxvt.urlButton: 1

! Cursor
URxvt.cursorBlink:          true
!URxvt.cursorColor:          #657b83
URxvt.cursorUnderline:      false
!*cursorColor:      *XtDefaultForeground

! Pointer
URxvt.pointerBlank:         true


*background: #002b36
!*foreground: #657b83 INFO Custom foreground above
!!*fading: 40
*fadeColor: #002b36
*cursorColor: #93a1a1
*pointerColorBackground: #586e75
*pointerColorForeground: #93a1a1

!! black dark/light
*color0: #073642
*color8: #002b36

!! red dark/light
*color1: #dc322f
*color9: #cb4b16

!! green dark/light
*color2: #859900
*color10: #586e75

!! yellow dark/light
*color3: #b58900
*color11: #657b83

!! blue dark/light
*color4: #268bd2
*color12: #839496

!! magenta dark/light
*color5: #d33682
*color13: #6c71c4

!! cyan dark/light
*color6: #2aa198
*color14: #93a1a1

!! white dark/light
*color7: #eee8d5
*color15: #fdf6e3

interaction design – Color picker for temperature/intensity adjustable light

I’m designing a color picker for intensity and color temperature on a lamp, where the user can adjust the intensity on the vertical axis and the color temperature on the horizontal axis.

Is this a good design pattern? What would be the better way of displaying this kind of control?

javascript – I need help with color capture in notification. Automate

¡Gracias por contribuir en StackOverflow en español con una respuesta!

  • Por favor, asegúrate de responder a la pregunta. ¡Proporciona información y comparte tu investigación!

Pero evita

  • Pedir ayuda o aclaraciones, o responder a otras respuestas.
  • Hacer declaraciones basadas en opiniones; asegúrate de respaldarlas con referencias o con tu propia experiencia personal.

Para obtener más información, consulta nuestros consejos sobre cómo escribir grandes respuestas.