Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Shashank Dharasurkar
5 articles
How to Add A Color Picker In Bokeh?
Bokeh is one of the most underrated Python visualization libraries and can be used for various applications, including data analysis, scientific visualization, interactive dashboards, etc. In this blog, we will learn how to add a colorpicker widget in Bokeh. What’s A Color Picker? Color picker is one of the many widgets present in Bokeh. It helps the user to specify an RGB color value. Widgets add interactions to the graphs, which can then help users to update plots or drive new computations without diving into code. Besides the color picker, Bokeh has many interesting widgets like buttons, checkbox groups, ...
Read MoreHow To Add Color Breezing Effect Using Pygame?
A popular Python game development library, Pygame provides a broad range of functions for creating 2D games. Using SDL, a low−level multimedia library, it handles graphics, sound, and input in games. The Pygame library allows you to create Python based games easily and intuitively. Creating a breathing effect A breathing effect is a visual effect where the color of an object pulsates or fades in and out, giving the illusion that it is breathing." By combining RGB values and blending modes, Pygame can create a breathing effect that adds depth and visual interest to game objects. Pygame's color manipulation involves ...
Read MoreHow To Add Color Bar In Bokeh
In Python, Bokeh is one of the most powerful libraries for data visualization that goes beyond traditional plotting. It follows a unique "Grammar of Graphics" architecture that allows developers to build interactive visualizations by managing graphical elements together. A Bokeh plot brings your data to life with its seamless integration with Pandas, NumPy, and SciPy. What is a Color Bar? Color bar is a visualization tool where color is used to represent a continuous variable like a heatmap. The main objective of the color bar is to allow users to understand the ...
Read MoreHow to Access Index in Python’s tuple for Loop?
When it comes to working with data sequences in Python, tuples are one of the excellent choices due to their immutability and efficiency. Fortunately, Python provides several built-in functions to simplify and speed up working with tuples, especially when you need to access the index of each element in a for-loop. This article will explore two approaches to accessing the index in a tuple for loop: the range() function and the enumerate() function. What is a Tuple in Python? Tuples in Python are a set of immutable elements separated by a comma. For example, consider the following tuple definition − ...
Read MoreHow To Access Different Rows Of A Multidimensional Numpy Array?
NumPy Multidimensional Arrays As the name suggests, Multidimensional Arrays are a technique that can be described as a way of defining and storing data in a format that has more than two dimensions (2D). Python allows the implementation of Multidimensional Arrays by nesting a list function inside another list function. Here are some examples on how we can create single and multidimensional arrays in Python using Numpy. Single Dimensional Array Example import numpy as np simple_arr = np.array([0, 1, 2, 3, 4]) print(simple_arr ) Output [0 1 2 3 4] Algorithm Import the NumPy library Use ...
Read More