Found 34488 Articles for Programming

How to Create a GUI Button in MATLAB App?

Manish Kumar Saini
Updated on 08-Aug-2023 10:12:24

183 Views

In MATLAB App environment, we can develop a GUI (Graphical User Interface) app without having proper knowledge of coding. Therefore, MATLAB app building allows us to create professional applications without writing code, and just by drag−drop. In this article, we will discuss how to create a GUI button in a MATLAB application. The step−by−step procedure to create a GUI button in a MATLAB app is explained below. Steps to Create GUI Button in MATLAB App We can follow the following steps to create a GUI button in a MATLAB application: Step(1)– Open the MATLAB command window. Step(2)– Launch the MATLAB ... Read More

How to check Django version?

Niharika Aitam
Updated on 09-Aug-2023 10:27:23

530 Views

Django is a free, open source web framework which is written in python and works with the python language. It follows the Model view controller(MVC) architectural pattern. This is manly used to develop the web applications in an easy and faster way with minimal fuss. The key features of the Django framework are as follows. It provides Object – relational mapper (ORM) for database management. It helps in URL routing and handling of HTTP requests and responses. Provides the templating engines to generate the HTML pages. It has built-in user authentication and administration Django supports the third party modules ... Read More

How to check any script is running in linux using Python?

Niharika Aitam
Updated on 09-Aug-2023 10:25:18

3K+ Views

The psutil module in Python helps us to retrieve information about the processes that are currently running in our local system. What is a script? AScript is a set of instructions that are written in programming language and executed in the computer. We can perform a variety of simple to complex repetitive tasks within less time. In Linux, the scripts are often executed through the command line using the shell interpreters like Bash or python. These scripts can also be scheduled to run at a particular times using the cron or systemd. Installing psutil module To work with ... Read More

How to change ticks label sizes using Python’s Bokeh

Niharika Aitam
Updated on 09-Aug-2023 10:23:53

115 Views

Bokeh is one of the data visualization libraries available in python, which allows the users to create the interactive plots, data applications, dashboards in web browsers. The Bokeh provides us varieties of plots and charts such as scatter plot, line plot, bar charts and area charts etc. and also more specialized heat maps and geographic maps. This is an Open source library with the active developer community. Creating Plots using Bokeh in Python The Bokeh library provides two main interfaces for creating the plot, one is low level interface which is used to develop the plots from the individual components ... Read More

Ways to Convert Boolean Values to Integer in Python

Aayush Shukla
Updated on 07-Aug-2023 21:58:38

992 Views

Python is a widely used programming language used for different purposes all over the world like web development, data science, machine learning and to perform various processes with automation. The output of Boolean is in the form of True & False. So, if we want to convert it into integer, we can represent true as 1 and false as 0. In this article we will learn about the different ways to convert Boolean values into Integer. Different Ways to Convert Boolean Value to Integer Integer Function In this method we will run the integer function along ... Read More

How to change the PyGame icon?

Niharika Aitam
Updated on 09-Aug-2023 10:22:22

807 Views

While building video games, we often try to setup an image or logo for that developed game. Python provides a function in pygame named, set_icon(), which sets the icon as desired. Pygame is a set of modules that allows us to develop the games and multimedia applications. This is built in top of the SDL(Simple Direct Media Layer) library which has low access to the audio keyboard, mouse, joystick and graphics hardware through OpenGL and Direct3D. Syntax Following is the syntax for setting the icon for the game - pygame_icon = pygame.image_load(“image_name”) pygame.display.set_icon(pygame_icon) Where, pygame_icon is the name ... Read More

Ways to Convert a 3D list into a 2D list in Python

Aayush Shukla
Updated on 07-Aug-2023 22:02:51

211 Views

Python is a widely used programming language used for different purposes such as Web Development, Data Science, Machine Learning and to perform different operations with automations. In this article we will learn about different ways to convert a 3D list into 2D list. Let's first have a look how does both the types of list look like: - 3D List Three_dimensional_list = [ [['Sam', 'Tom'], ['Miller', 'David']], [['Rocky', 'Tyler'], ['Mason', 'Petrick']], [['Stefen', 'Damon'], ['Matt', 'Jeremy']] ] # This is the basic structure of a three dimensional list 2D ... Read More

How to change the position of legend using Plotly Python?

Niharika Aitam
Updated on 09-Aug-2023 10:21:06

780 Views

Plotly python is the library in python to create interactive visualizations using the plotly java script. It provides a wide range of charts and plots like scatter plots, line charts, bar charts and so on. Installing plotly library To use the plotly python library first we have to install the library in our python environment. The below is the code to install plotly python. pip install plotly On successful installation the above command generates the following output – Defaulting to user installation because normal site-packages is not writeable Collecting plotly Downloading plotly-5.14.1-py2.py3-none-any.whl (15.3 MB) ... Read More

How to change the position of legend in Pygal?

Niharika Aitam
Updated on 09-Aug-2023 10:19:58

88 Views

Pygal is abbreviated as Python Data Visualization Library, which is designed to create the interactive charts and graphs. This is library is built with the advanced features than the SVG(Scalar Vector Graphics) format, to work with the high quality graphics that can be easily embedded into the web pages and applications. Pygal is abbreviated as Python Data Visualization Library, which is designed to create the interactive charts and graphs. This is library is built with the advanced features than the SVG(Scalar Vector Graphics) format, to work with the high quality graphics that can be easily embedded into the web pages ... Read More

Ways to Concatenate Boolean to String in Python

Aayush Shukla
Updated on 07-Aug-2023 21:41:02

102 Views

One can refer this article to learn about different methods to concatenate Boolean to string. All the different methods can be used in different cases. Different Methods to Concatenate Boolean to String String Function Let's take an example to understand it in a proper manner: - Example # Case 1 value_of_boolean = True # The value of Boolean is given as input to the function final_string = "The value of the boolean will be displayed as: " + str(value_of_boolean) # The Boolean is converted into string with the help of str function print(final_string) # ... Read More

Advertisements