Found 27104 Articles for Server Side Programming

How To Add Color Breezing Effect Using Pygame?

Shashank Dharasurkar
Updated on 29-Aug-2023 17:00:13

99 Views

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 More

How To Add Color Bar In Bokeh

Shashank Dharasurkar
Updated on 29-Aug-2023 16:58:22

187 Views

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 More

How to Add A Color Picker In Bokeh?

Shashank Dharasurkar
Updated on 27-Nov-2023 11:57:50

122 Views

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 More

Union of Python Tuples

Pranay Arora
Updated on 29-Aug-2023 13:41:48

364 Views

A tuple, in python, is a sequential data structure that consists of a number of values. It is an immutable data structure. Hence, it is tricky to get a union of two tuples. Through this article we will try to dive into a few of the best possible approaches and understand their implementation in Python. Tuples, in python, are immutable, but they can contain mutable objects. Similarly, we can take help of mutable data structures to get our desired union. The union of Python tuples finds applications in removing duplicates, merging data sources, set operations, data deduplication, merging multiple results, ... Read More

Python - Type conversion in Nested and Mixed List

Pranay Arora
Updated on 29-Aug-2023 13:14:18

184 Views

Python is widely used and accepted today because of its versatility and readability. Its powerful features allow developers to perform complex tasks with ease. One such essential feature is type conversion or type casting. Especially with Python lists, which are heterogeneous in nature which often demands converting each nested list element or lists to be converted to a particular data type for use. In mixed lists, it becomes more complex. In this article, we will try to understand and implement type conversion in Nested and Mixed Lists. Through the codes we will decode the python features to implement the ... Read More

Python - Convert List to Single Valued Lists in Tuple

Pranay Arora
Updated on 29-Aug-2023 13:12:48

121 Views

This article is our approach to try and understand the various methods to convert a list to single valued lists in Tuple. We will look into the possible Python programming to achieve the same. We will discuss the implementation details, time and space complexities, and efficiency of each method based on the size of the input list. Developers, data scientists, and general readers with a basic technical background will find this article beneficial for judging the best approach for their specific use cases. In python, converting a list to a tuple of single valued lists is not a complex task. ... Read More

How to print Superscript and Subscript in Python?

Pranay Arora
Updated on 29-Aug-2023 13:10:37

6K+ Views

Python is a multipurpose programming language which is well known to us for its simplicity and power. Whether you are starting as a fresher or an experienced developer, Python helps us with a wide range of tools to control and display text in various formats. Many times we need superscripts and subscripts as part of our writing especially to denote Scientific Notations or values. In this article, we will try to visualize and understand different ways to print superscripts and subscripts in Python. This will allow you to beautify and justify text output and make it visually appealing and equally ... Read More

How to Print Multiple Arguments in Python?

Pranay Arora
Updated on 29-Aug-2023 13:08:49

1K+ Views

Python is one of the most widely used programming languages due to its powerful dynamic functionalities and ease of writing codes. It is great for beginners as well to start their programming journey. One very popular start code or beginner code is to understand and implement printing ‘Hello world’ in our console. In python, we use a print() statement to achieve the same. print("Hello World!!!") In this article, we will try to understand the print() module and learn how to print multiple arguments in Python. When we try to display anything in the console or window, there are often ... Read More

How to Position Legends Inside a Plot in Plotly-Python?

Pranay Arora
Updated on 29-Aug-2023 13:05:26

1K+ Views

Data visualization is a powerful tool that allows us to understand information examples, patterns, and bits of knowledge all the more really. Plotly-Python, a flexible and intuitive plotting library, gives information researchers, specialists, and experts with the capacity to make outwardly engaging and intelligent plots. Among the critical components of any plot is the legend, which assumes a significant part in assisting watchers with grasping the information and distinguish various components present in the representation. As a matter of course, Plotly positions legends outside the plot region, normally on the right-hand side. While this arrangement is reasonable for ... Read More

How to Plot a Ricker Curve Using SciPy - Python?

Pranay Arora
Updated on 29-Aug-2023 13:01:02

97 Views

Python is one of the most popular and versatile programming languages. It is a dynamically-typed, high level language. It offers support for multiple libraries and tools for various scientific and mathematical research. It is hence widely used in data analysis and research. SciPy is a widely used python library, which provides a collection of functions and abilities for scientific computing. In this article, we will learn and understand how to plot a Ricker curve using SciPy in Python. The Ricker curve, which is also popular as the Mexican Hat wavelet, is commonly used in signal processing, seismic exploration, etc. By ... Read More

Advertisements