How to use bokeh.plotting

share link

by dot icon Updated: Aug 24, 2023

technology logo
technology logo

Solution Kit Solution Kit  

Bokeh is a term used in photography. It helps describe the quality of the out-of-focus areas in an image. It refers to how a camera lens renders points of light out of the depth of field, resulting in a soft.

Various factors, including the lens design and aperture setting, create Bokeh. Lenses with wider apertures are generally better at producing pronounced and appealing Bokeh. Bokeh can enhance the visual impact of a photograph by isolating the subjects.   

Types of Bokeh:  

  •  Soft and Creamy Bokeh   
  •  Harsh or Busy Bokeh   
  •  Circular Bokeh   
  •  Polygonal Bokeh   
  •  Cat's Eye Bokeh   
  •  Double Bokeh   
  •  Colorful Bokeh   
  •  Subject-Enhancing Bokeh   

Techniques of using Bokeh:  

To create Bokeh, you need a nice blurry background that highlights your main subject. Bokeh creates depth and separation, making the subject stand out.   

  1. Wide Aperture (Low f-number): To create Bokeh, you can use a wide aperture with a low f-number. When taking portraits, using a wide aperture like f/1.8 or f/2.8, the background blurs while the subject remains clear.  
  2. Long Focal Length: Telephoto lenses are longer, making the depth of field shallower. Use a telephoto lens and stay far away to blur the environment and focus on the subject.  
  3. Subject-to-Background Distance: Bring the subject closer to the camera to improve the picture. But away from the background. By using this method and a large opening, the background becomes very blurry.  
  4. Bokeh Balls and Shapes: Some lenses can make Bokeh look like circles or hexagons. The diaphragm blades within the lens create these shapes. A lens with more blades can make the Bokeh highlights smoother and rounder.  
  5. Foreground Elements: To make your photo appealing, add blurry objects in the foreground. They don't need to be in focus. Foreground elements can make the image more interesting and dynamic.  
  6. Bokeh Filters and Masks: Bokeh filters or masks are accessories that can attach to the front of your lens. They create custom-shaped bokeh highlights in your images. You can try different bokeh effects by using filters with different shapes.  
  7. Creative Lighting: Use various string or fairy lights for a better bokeh effect. Background city lights also work well. The lights in the background will turn into beautiful, soft, colorful highlights.  
  8. Selective Focus and Macro Photography: Macro photography is close-up pictures of small objects. It's called selective focus. Then, highlight specific details. The pictures usually have a blurry background. You can create a dreamy bokeh background by focusing selectively on a small part of your subject.  


In conclusion, Bokeh plotting represents a dynamic and compelling approach to data visualization. Its interactivity, customization, and versatility make it an essential tool for conveying insights. It enables a deeper exploration of data appealingly and interactively. Bokeh's unique attributes position it as a cornerstone in data visualization. It helps to unlock the stories hidden within datasets and facilitates informed decision-making.