Questions tagged [cptbarplot]

23 questions
14
votes
2 answers

Cell of UICollectionView not always refreshed after a scroll

I have defined in my Storyboard (iPad) a view that contains a UICollectionView, at the bottom of the view there's also a UIToolbar. In the UICollectionView I have added a UICollectionViewCell (implemented by an iPadCellCollectionViewCell class) that…
sebastien
  • 2,489
  • 5
  • 26
  • 47
4
votes
1 answer

Positioning label on CPTBarPlot (Core-Plot)

I am trying to change default position of labels in Bar chart with Core-Plot. I am using this method: -(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)idx; And I return: return textLayer = [[CPTTextLayer alloc]…
mhergon
  • 1,688
  • 1
  • 18
  • 39
3
votes
2 answers

Core-Plot: Data labels for bar plots (2 plots, 2 sets of labels)?

In my iPhone app, I have a view with two separate bar plots. Each plot has a different number of data elements. I would like to label each bar in each plot with the appropriate data, but apparently the "dataLabelForPlot" method only allows one…
Michael Young
  • 414
  • 1
  • 7
  • 16
3
votes
2 answers

Barplot from Sums of Columns in Data Frame

I have a data frame with 190 observations (rows). There are five columns, in which every entry either has the value 0 or 1. How do I get a barplot that has the name of the five columns on the x-Axis and the number of 1's (i.e. the sum) of every…
Lukas
  • 424
  • 3
  • 6
  • 17
2
votes
1 answer

Difference on core plot CPTBarPlotFieldBarLocation and CPTBarPlotFieldBarTip?

I'm new to core plot and wondering what the difference is on CPTBarPlotFieldBarLocation and CPTBarPlotFieldBarTip. I have been looking at the core plot example CPTTestApp_ipadViewController and I have seen that both of these field enum are called…
user851369
  • 21
  • 3
2
votes
1 answer

How to plot multiple Seaborn Barplots in a subplot?

I want to create a subplot with three seaborn barplots. I have already created the three population pyramid barplots but I do not know how to put them together as subplots. import pandas as pd import matplotlib.pyplot as plt import numpy as…
Marco Mariani
  • 97
  • 1
  • 2
  • 6
2
votes
1 answer

ranking a stacked Bar plot

all, I have a dataframe which I have grouped and sorted and that looks like this brkrcy=data[data['upload_date']==Date].groupby(['CPTY','currency'], as_index=False).agg({"Gross Loan Amount": "sum"}) brkrcy=brkrcy.sort_values(by=['CPTY',…
SBad
  • 1,245
  • 5
  • 23
  • 36
2
votes
2 answers

Problems in adding core plot frame work with existing project in Workspace

I want to use core plot in my project to display bar&scatter plots.Before that I made a prototype project where I was successful in plotting those two. But when I tried to include it into my project faced some problems. 1) My project has a static…
User-1070892
  • 929
  • 10
  • 16
2
votes
1 answer

Set Axis Text Style in Core Plot

So I am implementing a bar graph with core plots and currently have my y axis like this What I'm trying to do is remove the trailing .0 from all the instances and am not sure what property I need to set, what method I need to override or what…
JLoewy
  • 535
  • 1
  • 4
  • 17
1
vote
2 answers

Change order of bars and stacks in stacked barplot (R)

I´m trying to graph a series of 11 variables from 5 groups in a stacked barplot. This is my data and code inf_source <- structure(list(inf_episode = c("First", "Second", "Third", "Fourth", "Fifth"), Pneumonia =…
Sandra R
  • 11
  • 2
1
vote
1 answer

How to change colors of stacked barplot with Plotly?

I have started to use Plotly recently. I wanted to choose the colors, but I have the same color for my column and my legend. What I have, the same color per age group: What I would like to achieve: My code x = ['18-25', '25-35',…
Elise
  • 29
  • 1
  • 5
1
vote
1 answer

How to subset when with two different variables (to make a barplot)

I am trying to make a subset with with two different variables, however when I run this code: progressive.vote.demo <- subset(dbj, subset == progressive.vote & republican == 0) it comes up with this error message: Error in subset ==…
1
vote
2 answers

deleted variable in a barplot

i need your help with a barplot in R. I have a data frame called "answers", it is something like this: v0= Chicago, Miami,Orlando, New York, (50 cities more) v1= employee, Unemployed, looking for a job . I need help with a barplot, I'm doing…
Rigo
  • 11
  • 1
1
vote
1 answer

Core Plot Bar - Legend for just a few bars

I have one Bar Plot. This bar graph has ten bars but I just want to present the caption of only first 3 bars. I even tried adding in an NSArray assistant the first three plot but without success. Some help? idea? criticizes? Thanks
Gian
  • 1,193
  • 2
  • 8
  • 20
1
vote
1 answer

Adding CorePlot BarGraphs to subview

Currently, I am using Coreplot's graphical framework to implement bar graphs. I pulled the tutorial projects from http://www.raywenderlich.com/13271/how-to-draw-graphs-with-core-plot-part-2 . I changed the tutorial slightly to pull web service data…
jsetting32
  • 1,632
  • 2
  • 20
  • 45
1
2