Category "plot"

Python Cartesian plane plot and line

I want to create a cartesian plane in python that looks similar to the attached image, where I have 2 sets of coordinates e.g. (7,7) (17.4,20), and a line going

Force y axis to start at 0 and still use automated labeling

I have a plot whose y min starts well above 0. But I want to include 0 as the min of the y-axis and still have Stata automatically create evenly-spaced y-axis l

Drawing a surface 3D plot using "plotnine" library

Question : Using the python library 'plotnine', can we draw an interactive 3D surface plot? Backup Explanations What I'd like to do is, under python environme

Plot distribution of pandas dataframe depending on target value

I want to visualize the grade depending on the sex (male/female). My dataframe: df = pd.DataFrame( { "key": ["K0", "K1", "K2", "K3", "K4", "K5", "K6", "K7", "

No module named 'enthought' issue

I am having problems with plotting a 3D array called 's'. This issue is due to an error telling me that no module named enthought exists although I have already

Altair: Customizing outliers in boxplots

Is there any way to customize the outlier points in an Altair boxplot? Suppose I had the following plot: penguins_data="https://raw.githubusercontent.com/datavi

R stops responding when trying to plot

When trying to draw any plot R just stops responding. plot(1:10) The result is not responding. I am using MacBook M1 pro. It was working perfectly. Just sudden

Python single plot in a for loop without creating a list or array

This may sound like a very naive question. However, to me, it's quite fundamental: Can python plot variables without putting them into arrays or lists? I couldn

Arranging bars in multi-panel Lollipop chart using ggplot2

I am trying to plot a multi-panel Lollipop chart using ggplot2 using the following code #Data df =structure(list(Indices = c("Time", "Z11", "Z51", "Z61", "Z161"

Is there a way to customize the feature order in a SHAP beeswarm plot?

I'm wondering if there's a way to change the order the features in a SHAP beeswarm plot are displayed in. The docs describe "transforms" like using shap_values.

Graph network visualisation in flutter?

I'm a newbie in flutter. Would anybody have an idea of how to plot a graph network in flutter? An example using d3js is below. I'm interested in a solution t

Plot Layout of Base R Plots Saved by recordPlot() Function

I can use the recordPlot() function to save Base R plots in data objects: plot(1:5, 1:5) my_plot1 <- recordPlot() plot(1:10, 1:10) my_plot2 <- recordPlot

How to plot a 2 dimensional density / heatmap in plotnine?

I am trying to recreate the following graph in plotnine. It's asking me for more details but I don't want to distract from the example. I think it's pretty obvi

Plot 2d array using matplotlib based on fixed value-based color regions

I'd like to plot a 2d array using matplotlib based on fixed value-based color regions. For example, fixed color regions are 0 < value < 5 = red, 5 < va

How to add_subplot figure generated from external function with matplotlib

Currently, I have THREE function to create the graphic, namely get_image_1, get_image_2, and get_image_3 as shown in the function below. def get_image_1():

Custom features in beeswarm plot of shap

I have a causal inference model with featurizer=PolynomialFeatures(degree=3) which includes a degree 3 polynomial in X variable. I get the plot for interpretab

How to visualize a graph data structure?

I'm looking for a way to plot or visualize a graph made in Erlang using the digraph module. In the manual pages I can't find any function for doing this. How do

How to connect grouped points in ggplot within groups?

I have a dataset with two groups - Experimental and Control. Each participant contributes two responses per group, which represent different learning styles. Th

How can I get the order of plots correct in an rmd? [How can I control the print-time of messages?]

As the minimal reproducible example below shows, plot 2 appears too late. How can I fix this? It seems, the message screws everthing up. Most likely related: th

matplotlib Axes.plot() vs pyplot.plot()

What is the difference between the Axes.plot() and pyplot.plot() methods? Does one use another as a subroutine? It seems that my options for plotting are line =